blob: aced628aacb2e3e0c46a070e5d6261c60af6f746 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
#
# A pipeline is composed of independent jobs that run scripts, grouped into stages.
# Stages run in sequential order, but jobs within stages run in parallel.
# For more information, see: https://docs.gitlab.com/ee/ci/yaml/README.html#stages
#
stages:
- build
- test
- deploy
build-job:
stage: build
script:
- echo "This job runs in the build stage, which runs first."
test-job1:
stage: test
script:
- echo "This job runs in the test stage."
- echo "It only starts when the job in the build stage completes successfully."
test-job2:
stage: test
script:
- echo "This job also runs in the test stage."
- echo "This job can run at the same time as test-job2."
deploy-job:
stage: deploy
script:
- echo "This job runs in the deploy stage."
- echo "It only runs when both jobs in the test stage complete successfully"
|