From d7c74746097617d3eab80e47993ecede3843b08d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20Lefran=C3=A7ois?= Date: Mon, 26 Jul 2021 16:07:24 +0200 Subject: [PATCH] Update .gitlab-ci.yml --- .gitlab-ci.yml | 78 +------------------------------------------------- 1 file changed, 1 insertion(+), 77 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 17f0a42..11299fa 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,77 +1 @@ -image: openjdk:8-jdk - -variables: - SAREF_DEV_KEY: - SAREF_PORTAL_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 -- GitLab