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 mavenSettingsConfig: 'repository.metio.wtf',
27 mavenLocalRepo: '.repository') {
29 sh("mvn clean pgp:sign deploy scm:tag -Drelease=sonatype -DpushChanges=false -Dpgp.secretKey=keyfile:${PGP_KEY} -Dpgp.passphrase=literal:'${PGP_PASSPHRASE}'")
31 currentBuild.result = 'FAILURE'