jenkins: update to latest template
This commit is contained in:
parent
b4d42447dc
commit
3aa20d4b53
1 changed files with 4 additions and 3 deletions
|
@ -1,4 +1,5 @@
|
||||||
final String gitRepoUrl = 'git@github.com:kemitix/mon.git'
|
final String repoName = "mon"
|
||||||
|
final String repoUrl = "git@github.com:kemitix/${repoName}.git"
|
||||||
final String mvn = "mvn --batch-mode --update-snapshots"
|
final String mvn = "mvn --batch-mode --update-snapshots"
|
||||||
|
|
||||||
pipeline {
|
pipeline {
|
||||||
|
@ -6,7 +7,7 @@ pipeline {
|
||||||
stages {
|
stages {
|
||||||
stage('Prepare') {
|
stage('Prepare') {
|
||||||
steps {
|
steps {
|
||||||
git url: gitRepoUrl, branch: '**', credentialsId: 'github-kemitix'
|
git url: repoUrl, branch: '**', credentialsId: 'github-kemitix'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('no SNAPSHOT in master') {
|
stage('no SNAPSHOT in master') {
|
||||||
|
@ -57,7 +58,7 @@ pipeline {
|
||||||
stage('Deploy') {
|
stage('Deploy') {
|
||||||
when { expression { (env.GIT_BRANCH == 'master') } }
|
when { expression { (env.GIT_BRANCH == 'master') } }
|
||||||
steps {
|
steps {
|
||||||
withMaven(maven: 'maven 3.5.2', jdk: 'JDK 1.8') {
|
withMaven(maven: 'maven 3.5.2', jdk: 'JDK 9') {
|
||||||
sh "${mvn} deploy --activate-profiles release -DskipTests=true"
|
sh "${mvn} deploy --activate-profiles release -DskipTests=true"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue