This is an automated email from the git hooks/post-receive script. New commit to branch develop in repository i18n. See https://gitlab.nuiton.org/nuiton/i18n.git commit f81c04fce8556847a94c3d566d2db1ca0454cc50 Author: Jean Couteau <couteau@codelutin.com> Date: Fri Oct 9 15:42:46 2020 +0200 Use rules --- .gitlab-ci.yml | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1d09e4f..67d7317 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -14,29 +14,26 @@ stages: maven: stage: build script: mvn --batch-mode clean package - except: - - master - - develop - - /^release/.*$/ - - schedules + rules: + - if: '$CI_COMMIT_BRANCH =~ "/^feature\/.*$/"' + # Sur develop, on vérifie que c'est releasable maven-verify: stage: check-can-release script: mvn --batch-mode clean verify -DperformRelease - only: - - develop - except: - - schedules + rules: + - if: '$CI_COMMIT_BRANCH == "develop" && $CI_PIPELINE_SOURCE != "schedule"' # Sonar uniquement si planifié sonar: stage: qa script: - export MAVEN_OPTS="-Xmx1024m" - - mvn -e -U clean verify -DskipRelease org.sonarsource.scanner.maven:sonar-maven-plugin:$MAVEN_SONAR_PLUGIN_VERSION:sonar -Dsonar.host.url="$SONAR_INSTANCE_URL" - only: - - schedules + - mvn -e -U clean verify -DskipRelease org.sonarsource.scanner.maven:sonar-maven-plugin:$MAVEN_SONAR_PLUGIN_VERSION:sonar -Dsonar.host.url="$SONAR_INSTANCE_URL" -Dsonar.projectKey=org.nuiton:i18n + rules: + - if: '$CI_PIPELINE_SOURCE == "schedule"' + pages: stage: reporting @@ -48,5 +45,6 @@ pages: script: - mvn site -Preporting && mvn site:stage - mv target/staging/nuitonpom/i18n public - except: - - schedules + rules: + - if: '$CI_COMMIT_BRANCH == "master" && $CI_PIPELINE_SOURCE != "schedule"' + -- To stop receiving notification emails like this one, please contact nuiton.org SCM administrator <admin+scm@nuiton.org>.