Commit e6ada9e0 authored by Gabrecht, Marco's avatar Gabrecht, Marco
Browse files

Update .gitlab-ci.yml

parent 61114024
Pipeline #21385 passed with stages
in 13 seconds
stages:
- generate
- consume
......@@ -7,24 +6,38 @@ job1:
stage: generate
script:
- mkdir build
- echo "Hello I am job 1" > build/job1-result.txt
- echo "Hello I am job 1 executed on the $CI_COMMIT_REF_NAME branch only" > build/job1-result.txt
artifacts:
paths:
paths:
- build/
only:
- master
job2:
stage: generate
script:
- mkdir build
- echo "Hello I am job 2" > build/job2-result.txt
- echo "Hello I am job 2 executed on the $CI_COMMIT_REF_NAME branch only" > build/job2-result.txt
artifacts:
paths:
paths:
- build/
only:
variables:
- $CI_COMMIT_REF_NAME == "release"
job3:
stage: consume
stage: generate
script:
- cat build/*-result.txt
- mkdir build
- echo "Hello I am job3 and always executed except for the master or release branch" > build/job3-result.txt
artifacts:
paths:
paths:
- build/
except:
- master
- release
job4:
stage: consume
script:
- cat build/*-result.txt
Supports Markdown
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