Only set tag for releases

This commit is contained in:
Ziver Koc 2017-10-27 17:15:49 +02:00
parent 116561e405
commit ff0ba5de96

5
Jenkinsfile vendored
View file

@ -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'
}
}