6 def mvnHome
= tool
"latest-maven"
9 sh
'date "+%Y.%m.%d-%H%M%S" > TIMESTAMP'
10 def timestamp
= readFile("TIMESTAMP")
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"