34 lines
868 B
YAML
34 lines
868 B
YAML
#
|
|
# 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"
|