Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Hübner, Jan-Ole
lab-gitlab
Commits
af5ce211
Commit
af5ce211
authored
Nov 09, 2020
by
Jan-Ole Hübner
Browse files
no message
parent
0f9d26a2
Pipeline
#21401
failed with stage
in 7 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
af5ce211
stages
:
-
generate
-
consume
job1
:
stage
:
generate
script
:
-
mkdir build
-
echo "Hello I am job 1 executed on the $CI_COMMIT_REF_NAME branch only" > build/job1-result.txt
artifacts
:
paths
:
-
build/
only
:
-
master
variables
:
GREET
:
"
Mundo"
job2
:
stage
:
generate
script
:
-
mkdir build
-
echo "Hello I am job 2 executed on the $CI_COMMIT_REF_NAME branch only" > build/job2-result.txt
artifacts
:
paths
:
-
build/
only
:
variables
:
-
$CI_COMMIT_REF_NAME == "release"
stages
:
-
test
j
ob3
:
stage
:
genera
te
j
ava
:
stage
:
te
st
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
-
javac src/*.java
-
java -cp src/ Hello $GREET > result.txt
-
cat result.txt
-
cat result.txt | grep "Hello $GREET"
job4
:
stage
:
consume
python
:
stage
:
test
script
:
-
cat build/*-result.txt
-
python src/hello.py $GREET > result.txt
-
cat result.txt
-
cat result.txt | grep "Hello $GREET"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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