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"
11 dir("${repositoryLocation}") {
22 maven: "${mavenVersion}",
23 mavenSettingsConfig: "${mavenSettings}",
24 mavenLocalRepo: "${repositoryLocation}") {
29 -DgenerateBackupPoms=false \
30 -DnewVersion=${timestamp}
36 withSonarQubeEnv('quality.metio.wtf') {
38 maven: "${mavenVersion}",
39 mavenSettingsConfig: "${mavenSettings}",
40 mavenLocalRepo: "${repositoryLocation}") {
52 string(credentialsId: 'pgp.secretkey', variable: 'PGP_KEY'),
53 string(credentialsId: 'pgp.passphrase', variable: 'PGP_PASSPHRASE')]) {
54 configFileProvider([configFile(fileId: "${mavenSettings}", variable: 'MAVEN_SETTINGS')]) {
56 maven: "${mavenVersion}",
57 mavenLocalRepo: "${repositoryLocation}") {
60 --settings $MAVEN_SETTINGS \
63 -Drelease=${releaseTarget} \
64 -DskipLocalStaging=${skipLocalStaging} \
65 -Dpgp.secretKey=keyfile:${PGP_KEY} \
66 -Dpgp.passphrase=literal:'${PGP_PASSPHRASE}'