Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
S
saref-core
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
18
Issues
18
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
SAREF
saref-core
Commits
3850ad6b
Commit
3850ad6b
authored
Jun 13, 2020
by
Maxime Lefrançois
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
enriched pipeline
parent
d1f52eba
Pipeline
#4551
failed with stages
in 2 minutes and 57 seconds
Changes
1
Pipelines
4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
50 additions
and
8 deletions
+50
-8
.gitlab-ci.yml
.gitlab-ci.yml
+50
-8
No files found.
.gitlab-ci.yml
View file @
3850ad6b
image
:
openjdk:8-jdk
develop
:
variables
:
SAREF_DEV_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://gitlab.emse.fr/saref/saref-pipeline/-/jobs/artifacts/master/raw/target/saref-pipeline.jar?job=build"
-
java -jar saref-pipeline.jar develop -s
-
java -jar saref-pipeline.jar develop -s && touch target/success
allow_failure
:
true
except
:
-
/^prerelease-v/
-
/^release-v/
...
...
@@ -11,21 +27,47 @@ develop:
when
:
always
paths
:
-
target/site
-
target/
report_output.xml
-
target/
success
reports
:
junit
:
target/report_output.xml
release
:
test-prerelease
:
stage
:
test
script
:
-
curl -L -o saref-pipeline.jar "https://gitlab.emse.fr/saref/saref-pipeline/-/jobs/artifacts/master/raw/target/saref-pipeline.jar?job=build"
-
java -jar saref-pipeline.jar release
only
:
-
java -jar saref-pipeline.jar release -t && touch target/success
allow_failure
:
true
only
:
-
/^prerelease-v/
-
/^release-v/
artifacts
:
when
:
always
paths
:
-
target/site
-
target/
report_output.xml
-
target/
success
reports
:
junit
:
target/report_output.xml
deploy-report
:
stage
:
deploy
script
:
-
scp -pr '-P 29419' 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://gitlab.emse.fr/saref/saref-pipeline/-/jobs/artifacts/master/raw/target/saref-pipeline.jar?job=build"
-
java -jar saref-pipeline.jar release -t
only
:
-
/^release-v/
trigger-release
:
stage
:
deploy
only
:
-
/^release-v/
trigger
:
project
:
saref/saref-portal
branch
:
master
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