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)') {
|
||||
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"
|
||||
|
|
Loading…
Add table
Reference in a new issue