Only set tag for releases
This commit is contained in:
parent
116561e405
commit
ff0ba5de96
1 changed files with 6 additions and 1 deletions
5
Jenkinsfile
vendored
5
Jenkinsfile
vendored
|
|
@ -27,7 +27,12 @@ node {
|
|||
}
|
||||
|
||||
stage('Deploy') {
|
||||
// Figure out Pom version
|
||||
def version = (readFile('pom.xml') =~ '<version>(.+?)</version>')[0][1]
|
||||
|
||||
// Start deployment
|
||||
sh 'mvn -DskipStatic -DskipTests deploy'
|
||||
if ( ! version.contains("SNAPSHOT"))
|
||||
sh 'mvn scm:tag'
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue