Commit 2a6d6084 authored by Marcel Amirault's avatar Marcel Amirault

Merge branch 'patch-158' into 'master'

Correction in DAG Pipeline Documentation for needs keyword

See merge request gitlab-org/gitlab!34781
parents 1c62b338 22b28fd9
...@@ -133,28 +133,28 @@ build_b: ...@@ -133,28 +133,28 @@ build_b:
test_a: test_a:
stage: test stage: test
needs: build_a needs: [build_a]
script: script:
- echo "This test job will start as soon as build_a finishes." - echo "This test job will start as soon as build_a finishes."
- echo "It will not wait for build_b, or other jobs in the build stage, to finish." - echo "It will not wait for build_b, or other jobs in the build stage, to finish."
test_b: test_b:
stage: test stage: test
needs: build_b needs: [build_b]
script: script:
- echo "This test job will start as soon as build_b finishes." - echo "This test job will start as soon as build_b finishes."
- echo "It will not wait for other jobs in the build stage to finish." - echo "It will not wait for other jobs in the build stage to finish."
deploy_a: deploy_a:
stage: deploy stage: deploy
needs: test_a needs: [test_a]
script: script:
- echo "Since build_a and test_a run quickly, this deploy job can run much earlier." - echo "Since build_a and test_a run quickly, this deploy job can run much earlier."
- echo "It does not need to wait for build_b or test_b." - echo "It does not need to wait for build_b or test_b."
deploy_b: deploy_b:
stage: deploy stage: deploy
needs: test_b needs: [test_b]
script: script:
- echo "Since build_b and test_b run slowly, this deploy job will run much later." - echo "Since build_b and test_b run slowly, this deploy job will run much later."
``` ```
...@@ -228,13 +228,13 @@ build_a: ...@@ -228,13 +228,13 @@ build_a:
test_a: test_a:
stage: test stage: test
needs: build_a needs: [build_a]
script: script:
- echo "This job tests something." - echo "This job tests something."
deploy_a: deploy_a:
stage: deploy stage: deploy
needs: test_a needs: [test_a]
script: script:
- echo "This job deploys something." - echo "This job deploys something."
``` ```
...@@ -257,13 +257,13 @@ build_b: ...@@ -257,13 +257,13 @@ build_b:
test_b: test_b:
stage: test stage: test
needs: build_b needs: [build_b]
script: script:
- echo "This job tests something else." - echo "This job tests something else."
deploy_b: deploy_b:
stage: deploy stage: deploy
needs: test_b needs: [test_b]
script: script:
- echo "This job deploys something else." - echo "This job deploys something else."
``` ```
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment