6 def mvnHome = tool "maven-3.3.9"
9 sh 'date "+%Y.%m.%d-%H%M%S" > TIMESTAMP'
10 def timestamp = readFile("TIMESTAMP")
13 wrap([$class: "ConfigFileBuildWrapper", managedFiles: [[fileId: "5b2469a4-b601-41f5-9ee8-4158696fb575", targetLocation: "settings.xml", variable: ""]]]) {
15 sh "${mvnHome}/bin/mvn -s settings.xml versions:set -DgenerateBackupPoms=false -DnewVersion=${timestamp}"
17 stage "Build & Deploy"
18 sh "${mvnHome}/bin/mvn -s settings.xml clean deploy -DskipLocalStaging=true"
22 sh "rm -f settings.xml"