Newer
Older
stage: build
tags:
- docker
image: maven:3.6.3-openjdk-14
script:
- cp config.properties.example config.properties
- ./build.sh embedded
Sonia Zorba
committed
build_installer_java8:
stage: build
tags:
- docker
image: maven:3-openjdk-8
Sonia Zorba
committed
script:
- cp config.properties.example config.properties
- cp TASMAN-webapp/local-settings.xml ~/.m2/settings.xml
- ./build.sh installer install-jdk8.sh
artifacts:
paths:
- install-jdk8.sh
build_installer_java11:
stage: build
tags:
- docker
image: maven:3-openjdk-11
script:
- cp config.properties.example config.properties
- cp TASMAN-webapp/local-settings.xml ~/.m2/settings.xml
- ./build.sh installer
artifacts:
paths:
- install.sh
test_backend:
stage: test
tags:
- docker
image: git.ia2.inaf.it:5050/ia2/ia2-devops/maven-otj-pg-embedded
script:
- cd TASMAN-bom
- mvn clean install
- cd ../TASMAN-core
- mvn clean install
upload_installer:
stage: deploy
tags:
- shell
only:
- master
script:
- 'curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file install.sh "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/TASMAN/latest/install.sh"'
Sonia Zorba
committed
- 'curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file install-jdk8.sh "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/TASMAN/latest/install-jdk8.sh"'
upload_tagged_installer:
stage: deploy
tags:
- shell
rules:
- if: '$CI_COMMIT_TAG != null'
script:
- 'curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file install.sh "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/TASMAN/${CI_COMMIT_TAG}/install-${CI_COMMIT_TAG}.sh"'
- 'curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file install-jdk8.sh "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/TASMAN/${CI_COMMIT_TAG}/install-${CI_COMMIT_TAG}-jdk8.sh"'