ignore old groupId artifacts as well
[maven-build-process.git] / build / jenkins / deploy-into-local-nexus.groovy
blob975113a47f66d1c8e40bc946e1670f61b264174e
1 node {
2 stage "Checkout"
3 checkout scm
5 stage "Tooling"
6 def mvnHome = tool "latest-maven"
8 stage "Timestamp"
9 sh 'date "+%Y.%m.%d-%H%M%S" > TIMESTAMP'
10 def timestamp = readFile("TIMESTAMP")
12 stage "Versioning"
13 sh "${mvnHome}/bin/mvn -s build/jenkins/local-nexus.xml versions:set -DgenerateBackupPoms=false -DnewVersion=${timestamp}"
15 stage "Build & Deploy"
16 sh "${mvnHome}/bin/mvn -s build/jenkins/local-nexus.xml clean deploy -DskipLocalStaging=true"
18 stage "Cleanup"
19 sh "rm -f TIMESTAMP"