From 897f9e1bc47d432d10ffa86a9f5c464b773a4d62 Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Wed, 6 Jun 2018 22:12:27 +0100 Subject: [PATCH] Update references to gitlab --- Jenkinsfile.groovy | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile.groovy b/Jenkinsfile.groovy index f85e5ce..38d1cae 100644 --- a/Jenkinsfile.groovy +++ b/Jenkinsfile.groovy @@ -42,8 +42,8 @@ pipeline { } } } - stage('SonarQube (github only)') { - when { expression { env.GIT_URL.startsWith('https://github.com') } } + stage('SonarQube (gitlab only)') { + when { expression { env.GIT_URL.startsWith('https://gitlab.com') } } steps { withSonarQubeEnv('sonarqube') { withMaven(maven: 'maven', jdk: 'JDK LTS') { @@ -58,8 +58,8 @@ pipeline { archiveArtifacts '**/target/*.jar' } } - stage('Deploy (master on github)') { - when { expression { (env.GIT_BRANCH == 'master' && env.GIT_URL.startsWith('https://github.com')) } } + stage('Deploy (master on gitlab)') { + when { expression { (env.GIT_BRANCH == 'master' && env.GIT_URL.startsWith('https://gitlab.com')) } } steps { withMaven(maven: 'maven', jdk: 'JDK LTS') { sh "${mvn} deploy --activate-profiles release -DskipTests=true"