Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/doc/ci
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-04-05 18:14:09 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-04-05 18:14:09 +0300
commitd4e0452ed946ca0cf4dd0537675abeda7a4c0ffa (patch)
tree1f719aa86ade289adefa247ba93a8f0f90528608 /doc/ci
parentcd17aa65132de074aab9ae50ab7bbf7f16428546 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'doc/ci')
-rw-r--r--doc/ci/migration/circleci.md6
-rw-r--r--doc/ci/runners/configure_runners.md6
-rw-r--r--doc/ci/yaml/includes.md8
-rw-r--r--doc/ci/yaml/index.md11
4 files changed, 11 insertions, 20 deletions
diff --git a/doc/ci/migration/circleci.md b/doc/ci/migration/circleci.md
index d39ae88a4a9..64f6866a3a4 100644
--- a/doc/ci/migration/circleci.md
+++ b/doc/ci/migration/circleci.md
@@ -320,16 +320,14 @@ Example of the same job using `tags` in GitLab CI/CD:
```yaml
windows job:
- stage:
- - build
+ stage: build
tags:
- windows
script:
- echo Hello, %USERNAME%!
osx job:
- stage:
- - build
+ stage: build
tags:
- osx
script:
diff --git a/doc/ci/runners/configure_runners.md b/doc/ci/runners/configure_runners.md
index cc30f661bf2..e3a6bed9b53 100644
--- a/doc/ci/runners/configure_runners.md
+++ b/doc/ci/runners/configure_runners.md
@@ -280,16 +280,14 @@ example, if you have an OS X runner with tag `osx` and a Windows runner with tag
```yaml
windows job:
- stage:
- - build
+ stage: build
tags:
- windows
script:
- echo Hello, %USERNAME%!
osx job:
- stage:
- - build
+ stage: build
tags:
- osx
script:
diff --git a/doc/ci/yaml/includes.md b/doc/ci/yaml/includes.md
index 6d34a3034f7..252cef0aa97 100644
--- a/doc/ci/yaml/includes.md
+++ b/doc/ci/yaml/includes.md
@@ -405,7 +405,8 @@ see this [CI/CD variable demo](https://youtu.be/4XR8gw3Pkos).
> - Introduced in GitLab 14.2 [with a flag](../../administration/feature_flags.md) named `ci_include_rules`. Disabled by default.
> - [Enabled on GitLab.com and self-managed](https://gitlab.com/gitlab-org/gitlab/-/issues/337507) in GitLab 14.3.
> - [Generally available](https://gitlab.com/gitlab-org/gitlab/-/issues/337507) in GitLab 14.4. Feature flag `ci_include_rules` removed.
-> - [Support for `exists` keyword added](https://gitlab.com/gitlab-org/gitlab/-/issues/341511) in GitLab 14.5.
+> - Support for `exists` keyword [introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/341511) in GitLab 14.5.
+> - Support for `needs` job dependency [introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/345377) in GitLab 15.11.
You can use [`rules`](index.md#rules) with `include` to conditionally include other configuration files.
@@ -415,11 +416,6 @@ these keywords:
- [`rules:if`](index.md#rulesif).
- [`rules:exists`](index.md#rulesexists).
-You cannot use [`needs:`](index.md#needs) to create a job dependency that points to
-a job added with `include:local:rules`. When the configuration is validated,
-GitLab returns `undefined need: <job-name>`. [Issue 345377](https://gitlab.com/gitlab-org/gitlab/-/issues/345377)
-proposes improving this behavior.
-
### `include` with `rules:if`
Use [`rules:if`](index.md#rulesif) to conditionally include other configuration files
diff --git a/doc/ci/yaml/index.md b/doc/ci/yaml/index.md
index 01173f43c2e..ca422b2eabd 100644
--- a/doc/ci/yaml/index.md
+++ b/doc/ci/yaml/index.md
@@ -2556,11 +2556,10 @@ can use that variable in `needs:pipeline` to download artifacts from the parent
To need a job that sometimes does not exist in the pipeline, add `optional: true`
to the `needs` configuration. If not defined, `optional: false` is the default.
-Jobs that use [`rules`](#rules), [`only`, or `except`](#only--except) might not always
-be added to a pipeline. GitLab checks the `needs` relationships before starting a
-pipeline:
+Jobs that use [`rules`](#rules), [`only`, or `except`](#only--except) and that are added with [`include`](#include)
+might not always be added to a pipeline. GitLab checks the `needs` relationships before starting a pipeline:
-- If the needs entry has `optional: true` and the needed job is present in the pipeline,
+- If the `needs` entry has `optional: true` and the needed job is present in the pipeline,
the job waits for it to complete before starting.
- If the needed job is not present, the job can start when all other needs requirements are met.
- If the `needs` section contains only optional jobs, and none are added to the pipeline,
@@ -3963,9 +3962,9 @@ If `stage` is not defined, the job uses the `test` stage by default.
**Keyword type**: Job keyword. You can use it only as part of a job.
-**Possible inputs**: An array including any number of stage names. Stage names can be:
+**Possible inputs**: A string, which can be a:
-- The [default stages](#stages).
+- [Default stage](#stages).
- User-defined stages.
**Example of `stage`**: