9 mavenSettingsConfig: 'repository.metio.wtf',
10 mavenLocalRepo: '.repository') {
12 def timestamp = new java.text.SimpleDateFormat('yyyy.MM.dd-HHmmss').format(new Date())
13 sh "mvn versions:set -DgenerateBackupPoms=false -DnewVersion=${timestamp}"
15 currentBuild.result = 'FAILURE'
20 stage('Build & Deploy') {
22 string(credentialsId: 'pgp.secretkey', variable: 'PGP_KEY'),
23 string(credentialsId: 'pgp.passphrase', variable: 'PGP_PASSPHRASE')]) {
25 maven: 'maven-latest',
26 mavenLocalRepo: '.repository') {
28 sh "git config user.name 'build.metio.wtf'"
29 sh "git config user.email 'build@metio.wtf'"
30 configFileProvider([configFile(fileId: 'repository.metio.wtf', variable: 'MAVEN_SETTINGS')]) {
31 sh("mvn -s $MAVEN_SETTINGS clean pgp:sign deploy scm:tag -Drelease=metio -DpushChanges=false -DskipLocalStaging=true -Dpgp.secretKey=keyfile:${PGP_KEY} -Dpgp.passphrase=literal:'${PGP_PASSPHRASE}'")
34 currentBuild.result = 'FAILURE'