Skip to content
Snippets Groups Projects
Unverified Commit 47893985 authored by Maxime Lefrançois's avatar Maxime Lefrançois
Browse files

update ci/cd

parent 33df5e4d
No related branches found
No related tags found
No related merge requests found
Pipeline #6121 passed with warnings
...@@ -3,13 +3,13 @@ variables: ...@@ -3,13 +3,13 @@ variables:
GIT_DEPTH: 0 GIT_DEPTH: 0
SAREF_DEV_KEY: <my_private_key> SAREF_DEV_KEY: <my_private_key>
SAREF_PORTAL_KEY: <my_private_key> SAREF_PORTAL_KEY: <my_private_key>
SAREF_PORT: <port>
stages: stages:
- test - test
- build - build
- deploy - deploy
test-develop: test-develop:
stage: test stage: test
image: openjdk:11-jre image: openjdk:11-jre
...@@ -45,21 +45,22 @@ test-prerelease: ...@@ -45,21 +45,22 @@ test-prerelease:
reports: reports:
junit: target/report_output.xml junit: target/report_output.xml
# deploy-report: deploy-report:
# stage: deploy stage: deploy
# image: alpine:latest image: alpine:latest
# script: script:
# - apk update - apk update
# - apk add openssh - apk add openssh
# - eval $(ssh-agent -s) - echo "172.29.10.32 saref.etsi.org" >> /etc/hosts
# - ssh-add <(echo "$SAREF_DEV_KEY") - eval $(ssh-agent -s)
# - mkdir -p ~/.ssh - ssh-add <(echo "$SAREF_DEV_KEY")
# - '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config' - mkdir -p ~/.ssh
# - scp -P 29419 -pr target/site saref-dev@saref.etsi.org:~/snapshot/$CI_PIPELINE_ID - '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
# - echo "SAREF pipeline report https://saref.etsi.org/snapshot/$CI_PIPELINE_ID/report.html" - scp -P $SAREF_PORT -O -pr target/site saref-dev@saref.etsi.org:~/snapshot/$CI_PIPELINE_ID
# - exit $(test -f target/success) $? - echo "SAREF pipeline report https://saref.etsi.org/snapshot/$CI_PIPELINE_ID/report.html"
# except: - exit $(test -f target/success) $?
# - /^release-v/ except:
- /^release-v/
test-release: test-release:
stage: test stage: test
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment