image: gradle:6.8.3-jdk11 variables: LC_ALL: "en_US.UTF-8" LANG: "en_US.UTF-8" LANGUAGE: "en_US" LIB_NAME: "ms_specific" GIT_DEPTH: "2" SECURE_LOG_LEVEL: "debug" PROJECT_RELEASE_PACKAGE: "../release/" include: - template: Dependency-Scanning.gitlab-ci.yml - template: Secret-Detection.gitlab-ci.yml stages: - assemble - test # - package - release cache: paths: - .m2/repository - .gradle/wrapper - .gradle/caches assemble: stage: assemble tags: - docker except: - tags script: | cd ./moaSig ./gradlew clean assemble --warning-mode all artifacts: when: always release: stage: release image: registry.gitlab.com/gitlab-org/release-cli:latest needs: - job: assemble artifacts: true when: manual only: - master script: | echo "Releasing version $VERSION of $LIB_NAME" echo "Publishing version $VERSION to public EGIZ maven" cd ./moaSig ./gradlew release artifacts: name: "${CI_PROJECT_NAME}-${CI_COMMIT_SHORT_SHA}-release" expire_in: never paths: - "../release/${VERSION}/moa-spss-${VERSION}.zip" - "../release/${VERSION}/moa-spss-lib-${VERSION}.zip"