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

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:
- deploy
run tests in branches:
stage: compile
image: maven:3-jdk-8
stage: compile
image: maven:3-jdk-8
script:
- MAVEN_OPTS="${MAVEN_OPTS} -Dorg.slf4j.simpleLogger.defaultLogLevel=warn" mvn test -B
except:
- master
- tags
- /^genesys\-client\-api\-/
publish artifacts:
stage: deploy
image: maven:3-jdk-8
publish snapshot artifacts:
stage: deploy
image: maven:3-jdk-8
before_script:
- echo "${GPG_KEY_SECRET}" | gpg --batch --import
- gpg --list-keys
......@@ -21,4 +21,14 @@ publish artifacts:
- mvn clean deploy --settings .ci-maven-settings.xml -B -U
only:
- 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