Skip to content
Snippets Groups Projects
Commit 8d4aaa4d authored by GitLab Bot's avatar GitLab Bot
Browse files

Add latest changes from gitlab-org/gitlab@master

parent cbfe03ae
No related branches found
No related tags found
No related merge requests found
Showing
with 117 additions and 60 deletions
query mergeRequest($projectPath: ID!, $mergeRequestIID: ID!) { query mergeRequest($projectPath: ID!, $mergeRequestIID: String!) {
project(fullPath: $projectPath) { project(fullPath: $projectPath) {
mergeRequest(iid: $mergeRequestIID) { mergeRequest(iid: $mergeRequestIID) {
createdAt createdAt
Loading
Loading
query ($fullPath: ID!, $iid: ID!) { query ($fullPath: ID!, $iid: String!) {
project (fullPath: $fullPath) { project (fullPath: $fullPath) {
issue (iid: $iid) { issue (iid: $iid) {
iid iid
Loading
Loading
query ($fullPath: ID!, $iid: ID!) { query ($fullPath: ID!, $iid: String!) {
project (fullPath: $fullPath) { project (fullPath: $fullPath) {
issue (iid: $iid) { issue (iid: $iid) {
iid iid
Loading
Loading
Loading
@@ -9,7 +9,7 @@ module Mutations
Loading
@@ -9,7 +9,7 @@ module Mutations
required: true, required: true,
description: "The project the issue to mutate is in" description: "The project the issue to mutate is in"
   
argument :iid, GraphQL::ID_TYPE, argument :iid, GraphQL::STRING_TYPE,
required: true, required: true,
description: "The iid of the issue to mutate" description: "The iid of the issue to mutate"
   
Loading
Loading
Loading
@@ -9,7 +9,7 @@ module Mutations
Loading
@@ -9,7 +9,7 @@ module Mutations
required: true, required: true,
description: "The project the merge request to mutate is in" description: "The project the merge request to mutate is in"
   
argument :iid, GraphQL::ID_TYPE, argument :iid, GraphQL::STRING_TYPE,
required: true, required: true,
description: "The iid of the merge request to mutate" description: "The iid of the merge request to mutate"
   
Loading
Loading
Loading
@@ -2,11 +2,11 @@
Loading
@@ -2,11 +2,11 @@
   
module Resolvers module Resolvers
class IssuesResolver < BaseResolver class IssuesResolver < BaseResolver
argument :iid, GraphQL::ID_TYPE, argument :iid, GraphQL::STRING_TYPE,
required: false, required: false,
description: 'IID of the issue. For example, "1"' description: 'IID of the issue. For example, "1"'
   
argument :iids, [GraphQL::ID_TYPE], argument :iids, [GraphQL::STRING_TYPE],
required: false, required: false,
description: 'List of IIDs of issues. For example, [1, 2]' description: 'List of IIDs of issues. For example, [1, 2]'
argument :state, Types::IssuableStateEnum, argument :state, Types::IssuableStateEnum,
Loading
Loading
Loading
@@ -2,11 +2,11 @@
Loading
@@ -2,11 +2,11 @@
   
module Resolvers module Resolvers
class MergeRequestsResolver < BaseResolver class MergeRequestsResolver < BaseResolver
argument :iid, GraphQL::ID_TYPE, argument :iid, GraphQL::STRING_TYPE,
required: false, required: false,
description: 'The IID of the merge request, e.g., "1"' description: 'The IID of the merge request, e.g., "1"'
   
argument :iids, [GraphQL::ID_TYPE], argument :iids, [GraphQL::STRING_TYPE],
required: false, required: false,
description: 'The list of IIDs of issues, e.g., [1, 2]' description: 'The list of IIDs of issues, e.g., [1, 2]'
   
Loading
Loading
Loading
@@ -11,7 +11,7 @@ module Types
Loading
@@ -11,7 +11,7 @@ module Types
   
field :id, GraphQL::ID_TYPE, null: false, field :id, GraphQL::ID_TYPE, null: false,
description: 'ID of the pipeline' description: 'ID of the pipeline'
field :iid, GraphQL::ID_TYPE, null: false, field :iid, GraphQL::STRING_TYPE, null: false,
description: 'Internal ID of the pipeline' description: 'Internal ID of the pipeline'
   
field :sha, GraphQL::STRING_TYPE, null: false, field :sha, GraphQL::STRING_TYPE, null: false,
Loading
Loading
Loading
@@ -14,7 +14,7 @@ module Types
Loading
@@ -14,7 +14,7 @@ module Types
   
field :id, GraphQL::ID_TYPE, null: false, field :id, GraphQL::ID_TYPE, null: false,
description: 'ID of the merge request' description: 'ID of the merge request'
field :iid, GraphQL::ID_TYPE, null: false, field :iid, GraphQL::STRING_TYPE, null: false,
description: 'Internal ID of the merge request' description: 'Internal ID of the merge request'
field :title, GraphQL::STRING_TYPE, null: false, field :title, GraphQL::STRING_TYPE, null: false,
description: 'Title of the merge request' description: 'Title of the merge request'
Loading
Loading
---
title: Enable Redis cache key compression
merge_request: 27254
author:
type: performance
---
title: Enable feature Dynamic Child Pipeline creation via artifact
merge_request: 26648
author:
type: added
Loading
@@ -258,7 +258,7 @@ module Gitlab
Loading
@@ -258,7 +258,7 @@ module Gitlab
# Full list of options: # Full list of options:
# https://api.rubyonrails.org/classes/ActiveSupport/Cache/RedisCacheStore.html#method-c-new # https://api.rubyonrails.org/classes/ActiveSupport/Cache/RedisCacheStore.html#method-c-new
caching_config_hash = Gitlab::Redis::Cache.params caching_config_hash = Gitlab::Redis::Cache.params
caching_config_hash[:compress] = false caching_config_hash[:compress] = Gitlab::Utils.to_boolean(ENV.fetch('ENABLE_REDIS_CACHE_COMPRESSION', '1'))
caching_config_hash[:namespace] = Gitlab::Redis::Cache::CACHE_NAMESPACE caching_config_hash[:namespace] = Gitlab::Redis::Cache::CACHE_NAMESPACE
caching_config_hash[:expires_in] = 2.weeks # Cache should not grow forever caching_config_hash[:expires_in] = 2.weeks # Cache should not grow forever
if Gitlab::Runtime.multi_threaded? if Gitlab::Runtime.multi_threaded?
Loading
Loading
Loading
@@ -5,7 +5,7 @@ if Gitlab::Runtime.console?
Loading
@@ -5,7 +5,7 @@ if Gitlab::Runtime.console?
   
puts '-' * 80 puts '-' * 80
puts " GitLab:".ljust(justify) + "#{Gitlab::VERSION} (#{Gitlab.revision}) #{Gitlab.ee? ? 'EE' : 'FOSS'}" puts " GitLab:".ljust(justify) + "#{Gitlab::VERSION} (#{Gitlab.revision}) #{Gitlab.ee? ? 'EE' : 'FOSS'}"
puts " GitLab Shell:".ljust(justify) + "#{Gitlab::VersionInfo.parse(Gitlab::Shell.new.version)}" puts " GitLab Shell:".ljust(justify) + "#{Gitlab::VersionInfo.parse(Gitlab::Shell.version)}"
   
if Gitlab::Database.exists? if Gitlab::Database.exists?
puts " #{Gitlab::Database.human_adapter_name}:".ljust(justify) + Gitlab::Database.version puts " #{Gitlab::Database.human_adapter_name}:".ljust(justify) + Gitlab::Database.version
Loading
Loading
Loading
@@ -5,7 +5,8 @@ THROUGHPUT_LABELS = [
Loading
@@ -5,7 +5,8 @@ THROUGHPUT_LABELS = [
'security', 'security',
'bug', 'bug',
'feature', 'feature',
'backstage' 'backstage',
'documentation'
].freeze ].freeze
   
if gitlab.mr_body.size < 5 if gitlab.mr_body.size < 5
Loading
Loading
Loading
@@ -3757,7 +3757,7 @@ input IssueSetConfidentialInput {
Loading
@@ -3757,7 +3757,7 @@ input IssueSetConfidentialInput {
""" """
The iid of the issue to mutate The iid of the issue to mutate
""" """
iid: ID! iid: String!
   
""" """
The project the issue to mutate is in The project the issue to mutate is in
Loading
@@ -3802,7 +3802,7 @@ input IssueSetDueDateInput {
Loading
@@ -3802,7 +3802,7 @@ input IssueSetDueDateInput {
""" """
The iid of the issue to mutate The iid of the issue to mutate
""" """
iid: ID! iid: String!
   
""" """
The project the issue to mutate is in The project the issue to mutate is in
Loading
@@ -3842,7 +3842,7 @@ input IssueSetWeightInput {
Loading
@@ -3842,7 +3842,7 @@ input IssueSetWeightInput {
""" """
The iid of the issue to mutate The iid of the issue to mutate
""" """
iid: ID! iid: String!
   
""" """
The project the issue to mutate is in The project the issue to mutate is in
Loading
@@ -4150,7 +4150,7 @@ type MergeRequest implements Noteable {
Loading
@@ -4150,7 +4150,7 @@ type MergeRequest implements Noteable {
""" """
Internal ID of the merge request Internal ID of the merge request
""" """
iid: ID! iid: String!
   
""" """
Commit SHA of the merge request if merge is in progress Commit SHA of the merge request if merge is in progress
Loading
@@ -4550,7 +4550,7 @@ input MergeRequestSetAssigneesInput {
Loading
@@ -4550,7 +4550,7 @@ input MergeRequestSetAssigneesInput {
""" """
The iid of the merge request to mutate The iid of the merge request to mutate
""" """
iid: ID! iid: String!
   
""" """
The operation to perform. Defaults to REPLACE. The operation to perform. Defaults to REPLACE.
Loading
@@ -4595,7 +4595,7 @@ input MergeRequestSetLabelsInput {
Loading
@@ -4595,7 +4595,7 @@ input MergeRequestSetLabelsInput {
""" """
The iid of the merge request to mutate The iid of the merge request to mutate
""" """
iid: ID! iid: String!
   
""" """
The Label IDs to set. Replaces existing labels by default. The Label IDs to set. Replaces existing labels by default.
Loading
@@ -4645,7 +4645,7 @@ input MergeRequestSetLockedInput {
Loading
@@ -4645,7 +4645,7 @@ input MergeRequestSetLockedInput {
""" """
The iid of the merge request to mutate The iid of the merge request to mutate
""" """
iid: ID! iid: String!
   
""" """
Whether or not to lock the merge request. Whether or not to lock the merge request.
Loading
@@ -4690,7 +4690,7 @@ input MergeRequestSetMilestoneInput {
Loading
@@ -4690,7 +4690,7 @@ input MergeRequestSetMilestoneInput {
""" """
The iid of the merge request to mutate The iid of the merge request to mutate
""" """
iid: ID! iid: String!
   
""" """
The milestone to assign to the merge request. The milestone to assign to the merge request.
Loading
@@ -4735,7 +4735,7 @@ input MergeRequestSetSubscriptionInput {
Loading
@@ -4735,7 +4735,7 @@ input MergeRequestSetSubscriptionInput {
""" """
The iid of the merge request to mutate The iid of the merge request to mutate
""" """
iid: ID! iid: String!
   
""" """
The project the merge request to mutate is in The project the merge request to mutate is in
Loading
@@ -4780,7 +4780,7 @@ input MergeRequestSetWipInput {
Loading
@@ -4780,7 +4780,7 @@ input MergeRequestSetWipInput {
""" """
The iid of the merge request to mutate The iid of the merge request to mutate
""" """
iid: ID! iid: String!
   
""" """
The project the merge request to mutate is in The project the merge request to mutate is in
Loading
@@ -5351,7 +5351,7 @@ type Pipeline {
Loading
@@ -5351,7 +5351,7 @@ type Pipeline {
""" """
Internal ID of the pipeline Internal ID of the pipeline
""" """
iid: ID! iid: String!
   
""" """
SHA of the pipeline's commit SHA of the pipeline's commit
Loading
@@ -5629,12 +5629,12 @@ type Project {
Loading
@@ -5629,12 +5629,12 @@ type Project {
""" """
IID of the issue. For example, "1" IID of the issue. For example, "1"
""" """
iid: ID iid: String
   
""" """
List of IIDs of issues. For example, [1, 2] List of IIDs of issues. For example, [1, 2]
""" """
iids: [ID!] iids: [String!]
   
""" """
Labels applied to this issue Labels applied to this issue
Loading
@@ -5724,12 +5724,12 @@ type Project {
Loading
@@ -5724,12 +5724,12 @@ type Project {
""" """
IID of the issue. For example, "1" IID of the issue. For example, "1"
""" """
iid: ID iid: String
   
""" """
List of IIDs of issues. For example, [1, 2] List of IIDs of issues. For example, [1, 2]
""" """
iids: [ID!] iids: [String!]
   
""" """
Labels applied to this issue Labels applied to this issue
Loading
@@ -5799,12 +5799,12 @@ type Project {
Loading
@@ -5799,12 +5799,12 @@ type Project {
""" """
The IID of the merge request, e.g., "1" The IID of the merge request, e.g., "1"
""" """
iid: ID iid: String
   
""" """
The list of IIDs of issues, e.g., [1, 2] The list of IIDs of issues, e.g., [1, 2]
""" """
iids: [ID!] iids: [String!]
): MergeRequest ): MergeRequest
   
""" """
Loading
@@ -5829,12 +5829,12 @@ type Project {
Loading
@@ -5829,12 +5829,12 @@ type Project {
""" """
The IID of the merge request, e.g., "1" The IID of the merge request, e.g., "1"
""" """
iid: ID iid: String
   
""" """
The list of IIDs of issues, e.g., [1, 2] The list of IIDs of issues, e.g., [1, 2]
""" """
iids: [ID!] iids: [String!]
   
""" """
Returns the last _n_ elements from the list. Returns the last _n_ elements from the list.
Loading
@@ -8112,7 +8112,7 @@ input UpdateIssueInput {
Loading
@@ -8112,7 +8112,7 @@ input UpdateIssueInput {
""" """
The iid of the issue to mutate The iid of the issue to mutate
""" """
iid: ID! iid: String!
   
""" """
The project the issue to mutate is in The project the issue to mutate is in
Loading
Loading
Loading
@@ -10768,7 +10768,7 @@
Loading
@@ -10768,7 +10768,7 @@
"name": null, "name": null,
"ofType": { "ofType": {
"kind": "SCALAR", "kind": "SCALAR",
"name": "ID", "name": "String",
"ofType": null "ofType": null
} }
}, },
Loading
@@ -10898,7 +10898,7 @@
Loading
@@ -10898,7 +10898,7 @@
"name": null, "name": null,
"ofType": { "ofType": {
"kind": "SCALAR", "kind": "SCALAR",
"name": "ID", "name": "String",
"ofType": null "ofType": null
} }
}, },
Loading
@@ -11028,7 +11028,7 @@
Loading
@@ -11028,7 +11028,7 @@
"name": null, "name": null,
"ofType": { "ofType": {
"kind": "SCALAR", "kind": "SCALAR",
"name": "ID", "name": "String",
"ofType": null "ofType": null
} }
}, },
Loading
@@ -11861,7 +11861,7 @@
Loading
@@ -11861,7 +11861,7 @@
"name": null, "name": null,
"ofType": { "ofType": {
"kind": "SCALAR", "kind": "SCALAR",
"name": "ID", "name": "String",
"ofType": null "ofType": null
} }
}, },
Loading
@@ -13024,7 +13024,7 @@
Loading
@@ -13024,7 +13024,7 @@
"name": null, "name": null,
"ofType": { "ofType": {
"kind": "SCALAR", "kind": "SCALAR",
"name": "ID", "name": "String",
"ofType": null "ofType": null
} }
}, },
Loading
@@ -13172,7 +13172,7 @@
Loading
@@ -13172,7 +13172,7 @@
"name": null, "name": null,
"ofType": { "ofType": {
"kind": "SCALAR", "kind": "SCALAR",
"name": "ID", "name": "String",
"ofType": null "ofType": null
} }
}, },
Loading
@@ -13320,7 +13320,7 @@
Loading
@@ -13320,7 +13320,7 @@
"name": null, "name": null,
"ofType": { "ofType": {
"kind": "SCALAR", "kind": "SCALAR",
"name": "ID", "name": "String",
"ofType": null "ofType": null
} }
}, },
Loading
@@ -13450,7 +13450,7 @@
Loading
@@ -13450,7 +13450,7 @@
"name": null, "name": null,
"ofType": { "ofType": {
"kind": "SCALAR", "kind": "SCALAR",
"name": "ID", "name": "String",
"ofType": null "ofType": null
} }
}, },
Loading
@@ -13576,7 +13576,7 @@
Loading
@@ -13576,7 +13576,7 @@
"name": null, "name": null,
"ofType": { "ofType": {
"kind": "SCALAR", "kind": "SCALAR",
"name": "ID", "name": "String",
"ofType": null "ofType": null
} }
}, },
Loading
@@ -13706,7 +13706,7 @@
Loading
@@ -13706,7 +13706,7 @@
"name": null, "name": null,
"ofType": { "ofType": {
"kind": "SCALAR", "kind": "SCALAR",
"name": "ID", "name": "String",
"ofType": null "ofType": null
} }
}, },
Loading
@@ -16283,7 +16283,7 @@
Loading
@@ -16283,7 +16283,7 @@
"name": null, "name": null,
"ofType": { "ofType": {
"kind": "SCALAR", "kind": "SCALAR",
"name": "ID", "name": "String",
"ofType": null "ofType": null
} }
}, },
Loading
@@ -17021,7 +17021,7 @@
Loading
@@ -17021,7 +17021,7 @@
"description": "IID of the issue. For example, \"1\"", "description": "IID of the issue. For example, \"1\"",
"type": { "type": {
"kind": "SCALAR", "kind": "SCALAR",
"name": "ID", "name": "String",
"ofType": null "ofType": null
}, },
"defaultValue": null "defaultValue": null
Loading
@@ -17037,7 +17037,7 @@
Loading
@@ -17037,7 +17037,7 @@
"name": null, "name": null,
"ofType": { "ofType": {
"kind": "SCALAR", "kind": "SCALAR",
"name": "ID", "name": "String",
"ofType": null "ofType": null
} }
} }
Loading
@@ -17200,7 +17200,7 @@
Loading
@@ -17200,7 +17200,7 @@
"description": "IID of the issue. For example, \"1\"", "description": "IID of the issue. For example, \"1\"",
"type": { "type": {
"kind": "SCALAR", "kind": "SCALAR",
"name": "ID", "name": "String",
"ofType": null "ofType": null
}, },
"defaultValue": null "defaultValue": null
Loading
@@ -17216,7 +17216,7 @@
Loading
@@ -17216,7 +17216,7 @@
"name": null, "name": null,
"ofType": { "ofType": {
"kind": "SCALAR", "kind": "SCALAR",
"name": "ID", "name": "String",
"ofType": null "ofType": null
} }
} }
Loading
@@ -17475,7 +17475,7 @@
Loading
@@ -17475,7 +17475,7 @@
"description": "The IID of the merge request, e.g., \"1\"", "description": "The IID of the merge request, e.g., \"1\"",
"type": { "type": {
"kind": "SCALAR", "kind": "SCALAR",
"name": "ID", "name": "String",
"ofType": null "ofType": null
}, },
"defaultValue": null "defaultValue": null
Loading
@@ -17491,7 +17491,7 @@
Loading
@@ -17491,7 +17491,7 @@
"name": null, "name": null,
"ofType": { "ofType": {
"kind": "SCALAR", "kind": "SCALAR",
"name": "ID", "name": "String",
"ofType": null "ofType": null
} }
} }
Loading
@@ -17516,7 +17516,7 @@
Loading
@@ -17516,7 +17516,7 @@
"description": "The IID of the merge request, e.g., \"1\"", "description": "The IID of the merge request, e.g., \"1\"",
"type": { "type": {
"kind": "SCALAR", "kind": "SCALAR",
"name": "ID", "name": "String",
"ofType": null "ofType": null
}, },
"defaultValue": null "defaultValue": null
Loading
@@ -17532,7 +17532,7 @@
Loading
@@ -17532,7 +17532,7 @@
"name": null, "name": null,
"ofType": { "ofType": {
"kind": "SCALAR", "kind": "SCALAR",
"name": "ID", "name": "String",
"ofType": null "ofType": null
} }
} }
Loading
@@ -24526,7 +24526,7 @@
Loading
@@ -24526,7 +24526,7 @@
"name": null, "name": null,
"ofType": { "ofType": {
"kind": "SCALAR", "kind": "SCALAR",
"name": "ID", "name": "String",
"ofType": null "ofType": null
} }
}, },
Loading
Loading
Loading
@@ -630,7 +630,7 @@ Autogenerated return type of MarkAsSpamSnippet
Loading
@@ -630,7 +630,7 @@ Autogenerated return type of MarkAsSpamSnippet
| `forceRemoveSourceBranch` | Boolean | Indicates if the project settings will lead to source branch deletion after merge | | `forceRemoveSourceBranch` | Boolean | Indicates if the project settings will lead to source branch deletion after merge |
| `headPipeline` | Pipeline | The pipeline running on the branch HEAD of the merge request | | `headPipeline` | Pipeline | The pipeline running on the branch HEAD of the merge request |
| `id` | ID! | ID of the merge request | | `id` | ID! | ID of the merge request |
| `iid` | ID! | Internal ID of the merge request | | `iid` | String! | Internal ID of the merge request |
| `inProgressMergeCommitSha` | String | Commit SHA of the merge request if merge is in progress | | `inProgressMergeCommitSha` | String | Commit SHA of the merge request if merge is in progress |
| `mergeCommitMessage` **{warning-solid}** | String | **Deprecated:** Renamed to defaultMergeCommitMessage | | `mergeCommitMessage` **{warning-solid}** | String | **Deprecated:** Renamed to defaultMergeCommitMessage |
| `mergeCommitSha` | String | SHA of the merge request commit (set once merged) | | `mergeCommitSha` | String | SHA of the merge request commit (set once merged) |
Loading
@@ -834,7 +834,7 @@ Information about pagination in a connection.
Loading
@@ -834,7 +834,7 @@ Information about pagination in a connection.
| `duration` | Int | Duration of the pipeline in seconds | | `duration` | Int | Duration of the pipeline in seconds |
| `finishedAt` | Time | Timestamp of the pipeline's completion | | `finishedAt` | Time | Timestamp of the pipeline's completion |
| `id` | ID! | ID of the pipeline | | `id` | ID! | ID of the pipeline |
| `iid` | ID! | Internal ID of the pipeline | | `iid` | String! | Internal ID of the pipeline |
| `sha` | String! | SHA of the pipeline's commit | | `sha` | String! | SHA of the pipeline's commit |
| `startedAt` | Time | Timestamp when the pipeline was started | | `startedAt` | Time | Timestamp when the pipeline was started |
| `status` | PipelineStatusEnum! | Status of the pipeline (CREATED, WAITING_FOR_RESOURCE, PREPARING, PENDING, RUNNING, FAILED, SUCCESS, CANCELED, SKIPPED, MANUAL, SCHEDULED) | | `status` | PipelineStatusEnum! | Status of the pipeline (CREATED, WAITING_FOR_RESOURCE, PREPARING, PENDING, RUNNING, FAILED, SUCCESS, CANCELED, SKIPPED, MANUAL, SCHEDULED) |
Loading
Loading
Loading
@@ -308,7 +308,12 @@ Example response:
Loading
@@ -308,7 +308,12 @@ Example response:
} }
], ],
"links":[ "links":[
{
"id":3,
"name":"hoge",
"url":"https://gitlab.example.com/root/awesome-app/-/tags/v0.11.1/binaries/linux-amd64",
"external":true
}
], ],
"evidence_url":"https://gitlab.example.com/root/awesome-app/-/releases/v0.1/evidence.json" "evidence_url":"https://gitlab.example.com/root/awesome-app/-/releases/v0.1/evidence.json"
}, },
Loading
@@ -334,13 +339,14 @@ POST /projects/:id/releases
Loading
@@ -334,13 +339,14 @@ POST /projects/:id/releases
| `assets:links` | array of hash | no | An array of assets links. | | `assets:links` | array of hash | no | An array of assets links. |
| `assets:links:name`| string | required by: `assets:links` | The name of the link. | | `assets:links:name`| string | required by: `assets:links` | The name of the link. |
| `assets:links:url` | string | required by: `assets:links` | The url of the link. | | `assets:links:url` | string | required by: `assets:links` | The url of the link. |
| `assets:links:filepath` | string | no | Optional path for a [Direct Asset link](../../user/project/releases.md).
| `released_at` | datetime | no | The date when the release will be/was ready. Defaults to the current time. Expected in ISO 8601 format (`2019-03-15T08:00:00Z`). | | `released_at` | datetime | no | The date when the release will be/was ready. Defaults to the current time. Expected in ISO 8601 format (`2019-03-15T08:00:00Z`). |
   
Example request: Example request:
   
```shell ```shell
curl --header 'Content-Type: application/json' --header "PRIVATE-TOKEN: gDybLx3yrUK_HLp3qPjS" \ curl --header 'Content-Type: application/json' --header "PRIVATE-TOKEN: gDybLx3yrUK_HLp3qPjS" \
--data '{ "name": "New release", "tag_name": "v0.3", "description": "Super nice release", "milestones": ["v1.0", "v1.0-rc"], "assets": { "links": [{ "name": "hoge", "url": "https://google.com" }] } }' \ --data '{ "name": "New release", "tag_name": "v0.3", "description": "Super nice release", "milestones": ["v1.0", "v1.0-rc"], "assets": { "links": [{ "name": "hoge", "url": "https://google.com", "filepath": "/binaries/linux-amd64" }] } }' \
--request POST https://gitlab.example.com/api/v4/projects/24/releases --request POST https://gitlab.example.com/api/v4/projects/24/releases
``` ```
   
Loading
@@ -441,7 +447,7 @@ Example response:
Loading
@@ -441,7 +447,7 @@ Example response:
{ {
"id":3, "id":3,
"name":"hoge", "name":"hoge",
"url":"https://google.com", "url":"https://gitlab.example.com/root/awesome-app/-/tags/v0.11.1/binaries/linux-amd64",
"external":true "external":true
} }
], ],
Loading
Loading
Loading
@@ -126,7 +126,22 @@ microservice_a:
Loading
@@ -126,7 +126,22 @@ microservice_a:
script: ... script: ...
``` ```
   
## Dynamic child pipelines
> [Introduced](https://gitlab.com/gitlab-org/gitlab/issues/35632) in GitLab 12.9.
Instead of running a child pipeline from a static YAML file, you can define a job that runs
your own script to generate a YAML file, which is then [used to trigger a child pipeline](yaml/README.md#trigger-child-pipeline-with-generated-configuration-file).
This technique can be very powerful in generating pipelines targeting content that changed or to
build a matrix of targets and architectures.
## Limitations ## Limitations
   
A parent pipeline can trigger many child pipelines, but a child pipeline cannot trigger A parent pipeline can trigger many child pipelines, but a child pipeline cannot trigger
further child pipelines. See the [related issue](https://gitlab.com/gitlab-org/gitlab/issues/29651) for discussion on possible future improvements. further child pipelines. See the [related issue](https://gitlab.com/gitlab-org/gitlab/issues/29651)
for discussion on possible future improvements.
When triggering dynamic child pipelines, if the job containing the CI config artifact is not a predecessor of the
trigger job, the child pipeline will fail to be created, causing also the parent pipeline to fail.
In the future we want to validate the trigger job's dependencies [at the time the parent pipeline is created](https://gitlab.com/gitlab-org/gitlab/-/issues/209070) rather than when the child pipeline is created.
Loading
@@ -2899,6 +2899,31 @@ trigger_job:
Loading
@@ -2899,6 +2899,31 @@ trigger_job:
strategy: depend strategy: depend
``` ```
   
##### Trigger child pipeline with generated configuration file
> [Introduced](https://gitlab.com/gitlab-org/gitlab/issues/35632) in GitLab 12.9.
You can also trigger a child pipeline from a [dynamically generated configuration file](../parent_child_pipelines.md#dynamic-child-pipelines):
```yaml
generate-config:
stage: build
script: generate-ci-config > generated-config.yml
artifacts:
paths:
- generated-config.yml
child-pipeline:
stage: test
trigger:
include:
- artifact: generated-config.yml
job: generate-config
```
The `generated-config.yml` is extracted from the artifacts and used as the configuration
for triggering the child pipeline.
#### Linking pipelines with `trigger:strategy` #### Linking pipelines with `trigger:strategy`
   
By default, the `trigger` job completes with the `success` status By default, the `trigger` job completes with the `success` status
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment