Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Mick, Johanna
lab-gitlab
Commits
cec2a9aa
Commit
cec2a9aa
authored
Nov 14, 2020
by
Mick, Johanna
🌱
Browse files
Update .gitlab-ci.yml
parent
b5c348ac
Pipeline
#21628
passed with stages
in 12 seconds
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
cec2a9aa
...
...
@@ -6,22 +6,38 @@ job1:
stage
:
generate
script
:
-
mkdir build
-
echo "Hello I am job 1" > build/job-result.txt
-
echo "Hello I am job 1
executed on the $CI_COMMIT_REF_NAME branch only
" > build/job
1
-result.txt
artifacts
:
paths
:
-
build/
-
build/
only
:
-
master
job2
:
stage
:
generate
script
:
-
mkdir build
-
echo "Hello I am job 2" > build/job-result.txt
-
echo "Hello I am job 2
executed on the $CI_COMMIT_REF_NAME branch only
" > build/job
2
-result.txt
artifacts
:
paths
:
-
build/
-
build/
only
:
variables
:
-
$CI_COMMIT_REF_NAME == "release"
job3
:
stage
:
generate
script
:
-
mkdir build
-
echo "Hello I am job3 and always executed except for the master or release branch" > build/job3-result.txt
artifacts
:
paths
:
-
build/
except
:
-
master
-
release
job4
:
stage
:
consume
script
:
-
cat build/*-result.txt
-
cat build/*-result.txt
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment