Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
saref4agri
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SAREF
saref4agri
Commits
ae9e2b5e
Unverified
Commit
ae9e2b5e
authored
10 months ago
by
Maxime Lefrançois
Browse files
Options
Downloads
Patches
Plain Diff
use ci from saref-core
parent
c2078bb2
Branches
prerelease-v1.1.2
No related tags found
No related merge requests found
Pipeline
#6127
passed with warnings
10 months ago
Stage: test
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+3
-82
3 additions, 82 deletions
.gitlab-ci.yml
with
3 additions
and
82 deletions
.gitlab-ci.yml
+
3
−
82
View file @
ae9e2b5e
variables
:
GIT_STRATEGY
:
fetch
GIT_DEPTH
:
0
SAREF_DEV_KEY
:
<my_private_key>
SAREF_PORTAL_KEY
:
<my_private_key>
stages
:
-
test
-
build
-
deploy
test-develop
:
stage
:
test
image
:
openjdk:11-jre
script
:
-
curl -L -o saref-pipeline.jar "https://labs.etsi.org/rep/saref/saref-pipeline/-/releases/permalink/latest/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
image
:
openjdk:11-jre
script
:
-
curl -L -o saref-pipeline.jar "https://labs.etsi.org/rep/saref/saref-pipeline/-/releases/permalink/latest/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
# image: alpine:latest
# script:
# - apk update
# - apk add openssh
# - 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'
# - scp -P 29419 -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
image
:
openjdk:11-jre
script
:
-
curl -L -o saref-pipeline.jar "https://labs.etsi.org/rep/saref/saref-pipeline/-/releases/permalink/latest/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
:
-
project
:
'
saref/saref-core'
file
:
'
.gitlab-ci.yml'
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment