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'
21 stage('Build & Deploy') {
23 string(credentialsId: 'pgp.secretkey', variable: 'pgp_key'),
24 string(credentialsId: 'pgp.passphrase', variable: 'pgp_passphrase')]) {
26 maven: 'maven-latest',
27 mavenSettingsConfig: 'repository.metio.wtf',
28 mavenLocalRepo: '.repository') {
30 sh "mvn clean pgp:sign deploy scm:tag -Drelease=sonatype -DpushChanges=false -Dpgp.secretKey=$pgp_key -Dpgp.passphrase=$pgp_passphrase"
32 currentBuild.result = 'FAILURE'