Update references to gitlab
This commit is contained in:
parent
5c1822546e
commit
897f9e1bc4
1 changed files with 4 additions and 4 deletions
|
@ -42,8 +42,8 @@ pipeline {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('SonarQube (github only)') {
|
stage('SonarQube (gitlab only)') {
|
||||||
when { expression { env.GIT_URL.startsWith('https://github.com') } }
|
when { expression { env.GIT_URL.startsWith('https://gitlab.com') } }
|
||||||
steps {
|
steps {
|
||||||
withSonarQubeEnv('sonarqube') {
|
withSonarQubeEnv('sonarqube') {
|
||||||
withMaven(maven: 'maven', jdk: 'JDK LTS') {
|
withMaven(maven: 'maven', jdk: 'JDK LTS') {
|
||||||
|
@ -58,8 +58,8 @@ pipeline {
|
||||||
archiveArtifacts '**/target/*.jar'
|
archiveArtifacts '**/target/*.jar'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Deploy (master on github)') {
|
stage('Deploy (master on gitlab)') {
|
||||||
when { expression { (env.GIT_BRANCH == 'master' && env.GIT_URL.startsWith('https://github.com')) } }
|
when { expression { (env.GIT_BRANCH == 'master' && env.GIT_URL.startsWith('https://gitlab.com')) } }
|
||||||
steps {
|
steps {
|
||||||
withMaven(maven: 'maven', jdk: 'JDK LTS') {
|
withMaven(maven: 'maven', jdk: 'JDK LTS') {
|
||||||
sh "${mvn} deploy --activate-profiles release -DskipTests=true"
|
sh "${mvn} deploy --activate-profiles release -DskipTests=true"
|
||||||
|
|
Loading…
Add table
Reference in a new issue