3 def repositoryLocation = ".repository"
4 def timestamp = new java.text.SimpleDateFormat('yyyy.MM.dd-HHmmss').format(new Date())
5 def mavenVersion = "maven-latest"
6 def mavenSettings = "repository.metio.wtf"
7 def releaseTarget = "metio"
8 def skipLocalStaging = "true"
20 maven: "${mavenVersion}",
21 mavenSettingsConfig: "${mavenSettings}",
22 mavenLocalRepo: "${repositoryLocation}") {
27 -DgenerateBackupPoms=false \
28 -DnewVersion=${timestamp}
34 withSonarQubeEnv('quality.metio.wtf') {
36 maven: "${mavenVersion}",
37 mavenSettingsConfig: "${mavenSettings}",
38 mavenLocalRepo: "${repositoryLocation}") {
50 string(credentialsId: 'pgp.secretkey', variable: 'PGP_KEY'),
51 string(credentialsId: 'pgp.passphrase', variable: 'PGP_PASSPHRASE')]) {
52 configFileProvider([configFile(fileId: "${mavenSettings}", variable: 'MAVEN_SETTINGS')]) {
54 maven: "${mavenVersion}",
55 mavenLocalRepo: "${repositoryLocation}") {
58 --settings $MAVEN_SETTINGS \
61 -Drelease=${releaseTarget} \
62 -DskipLocalStaging=${skipLocalStaging} \
63 -Dpgp.secretKey=keyfile:${PGP_KEY} \
64 -Dpgp.passphrase=literal:'${PGP_PASSPHRASE}'