Loading .gitlab-ci.yml +17 −16 Original line number Original line Diff line number Diff line Loading @@ -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 Loading Loading @@ -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 Loading Loading
.gitlab-ci.yml +17 −16 Original line number Original line Diff line number Diff line Loading @@ -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 Loading Loading @@ -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 Loading