Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
SAREF
saref4auto
Commits
d7c74746
Commit
d7c74746
authored
Jul 26, 2021
by
Maxime Lefrançois
Browse files
Update .gitlab-ci.yml
parent
2eb6144a
Pipeline
#406
passed with stages
in 17 seconds
Changes
1
Pipelines
2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
77 deletions
+1
-77
.gitlab-ci.yml
.gitlab-ci.yml
+1
-77
No files found.
.gitlab-ci.yml
View file @
d7c74746
image
:
openjdk:8-jdk
variables
:
SAREF_DEV_KEY
:
<my_private_key>
SAREF_PORTAL_KEY
:
<my_private_key>
before_script
:
-
eval $(ssh-agent -s)
-
ssh-add <(echo "$SAREF_DEV_KEY")
-
mkdir -p ~/.ssh
-
'
[[
-f
/.dockerenv
]]
&&
echo
-e
"Host
*\n\tStrictHostKeyChecking
no\n\n"
>
~/.ssh/config'
stages
:
-
test
-
build
-
deploy
test-develop
:
stage
:
test
script
:
-
curl -L -o saref-pipeline.jar "https://saref.etsi.org/downloads/saref-pipeline.jar"
-
java -jar saref-pipeline.jar develop -s && touch target/success
allow_failure
:
true
except
:
-
/^prerelease-v/
-
/^release-v/
artifacts
:
when
:
always
paths
:
-
target/site
-
target/success
reports
:
junit
:
target/report_output.xml
test-prerelease
:
stage
:
test
script
:
-
curl -L -o saref-pipeline.jar "https://saref.etsi.org/downloads/saref-pipeline.jar"
-
java -jar saref-pipeline.jar release -t && touch target/success
allow_failure
:
true
only
:
-
/^prerelease-v/
artifacts
:
when
:
always
paths
:
-
target/site
-
target/success
reports
:
junit
:
target/report_output.xml
deploy-report
:
stage
:
deploy
script
:
-
scp -pr target/site saref-dev@saref.etsi.org:~/snapshot/$CI_PIPELINE_ID
-
echo "SAREF pipeline report https://saref.etsi.org/snapshot/$CI_PIPELINE_ID/report.html"
-
exit $(test -f target/success) $?
except
:
-
/^release-v/
test-release
:
stage
:
test
script
:
-
curl -L -o saref-pipeline.jar "https://saref.etsi.org/downloads/saref-pipeline.jar"
-
java -jar saref-pipeline.jar release -t
only
:
-
/^release-v/
trigger-release
:
stage
:
deploy
only
:
-
/^release-v/
variables
:
SAREF_DEV_KEY
:
$SAREF_DEV_KEY
SAREF_PORTAL_KEY
:
$SAREF_PORTAL_KEY
trigger
:
project
:
saref/saref-portal
branch
:
master
include
:
'
https://saref.etsi.org/downloads/gitlab-ci.yml'
\ No newline at end of file
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