Commit 2c07f60e authored by Matija Obreza's avatar Matija Obreza
Browse files

Gitlab CI pipeline deploys tags to central, master to snapshots, runs tests on other branches

parent 91bd025e
Pipeline #2722 passed with stage
in 25 seconds
...@@ -3,17 +3,17 @@ stages: ...@@ -3,17 +3,17 @@ stages:
- deploy - deploy
run tests in branches: run tests in branches:
stage: compile stage: compile
image: maven:3-jdk-8 image: maven:3-jdk-8
script: script:
- MAVEN_OPTS="${MAVEN_OPTS} -Dorg.slf4j.simpleLogger.defaultLogLevel=warn" mvn test -B - MAVEN_OPTS="${MAVEN_OPTS} -Dorg.slf4j.simpleLogger.defaultLogLevel=warn" mvn test -B
except: except:
- master - master
- tags - /^genesys\-client\-api\-/
publish artifacts: publish snapshot artifacts:
stage: deploy stage: deploy
image: maven:3-jdk-8 image: maven:3-jdk-8
before_script: before_script:
- echo "${GPG_KEY_SECRET}" | gpg --batch --import - echo "${GPG_KEY_SECRET}" | gpg --batch --import
- gpg --list-keys - gpg --list-keys
...@@ -21,4 +21,14 @@ publish artifacts: ...@@ -21,4 +21,14 @@ publish artifacts:
- mvn clean deploy --settings .ci-maven-settings.xml -B -U - mvn clean deploy --settings .ci-maven-settings.xml -B -U
only: only:
- master - master
- tags
publish artifacts on central:
stage: deploy
image: maven:3-jdk-8
before_script:
- echo "${GPG_KEY_SECRET}" | gpg --batch --import
- gpg --list-keys
script:
- mvn -P release clean deploy --settings .ci-maven-settings.xml -B -U
only:
- /^genesys\-client\-api\-/
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment