Commit 08928d21 authored by Amandine  TOURNAY's avatar Amandine TOURNAY

Updated CI rules : Pipeline is launching only on the master branch with a tag vx.y.z

parent a1949f40
image: maven:latest
#workflow:
# rules:
# - if: $CI_COMMIT_TAG
workflow:
rules:
- if: $CI_COMMIT_TAG == /^v(\d+\.)?(\d+\.)?(\d)/
- if: $CI_COMMIT_BRANCH == "master"
variables:
MAVEN_CLI_OPTS: "-s .m2/settings.xml --batch-mode"
......@@ -57,8 +58,6 @@ test-job:
deploy-job:
stage: deploy
#only:
#- test-ci
dependencies:
- package-job
script:
......
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