|
|
@ -12,24 +12,24 @@ pipeline {
|
|
|
|
GPG_OWNER_TRUST = credentials('8703bbe8-c099-481f-8337-1dce32d51771')
|
|
|
|
GPG_OWNER_TRUST = credentials('8703bbe8-c099-481f-8337-1dce32d51771')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
wrap([$class: 'Xvfb']) {
|
|
|
|
stages {
|
|
|
|
stages {
|
|
|
|
stage("Import GPG Keys") {
|
|
|
|
stage("Import GPG Keys") {
|
|
|
|
when {
|
|
|
|
when {
|
|
|
|
branch 'release'
|
|
|
|
branch 'release'
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
steps {
|
|
|
|
|
|
|
|
sh 'gpg --batch --import $GPG_SECRET_KEY'
|
|
|
|
|
|
|
|
sh 'gpg --import-ownertrust $GPG_OWNER_TRUST'
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage("Build") {
|
|
|
|
steps {
|
|
|
|
steps {
|
|
|
|
sh 'gpg --batch --import $GPG_SECRET_KEY'
|
|
|
|
withCredentials([file(credentialsId: '076a36e8-d448-46fc-af11-7e7181a6cb99', variable: 'MAVEN_SETTINGS')]) {
|
|
|
|
sh 'gpg --import-ownertrust $GPG_OWNER_TRUST'
|
|
|
|
sh 'mvn -s $MAVEN_SETTINGS -B -DskipTests clean package'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
stage("Build") {
|
|
|
|
|
|
|
|
steps {
|
|
|
|
|
|
|
|
withCredentials([file(credentialsId: '076a36e8-d448-46fc-af11-7e7181a6cb99', variable: 'MAVEN_SETTINGS')]) {
|
|
|
|
|
|
|
|
sh 'mvn -s $MAVEN_SETTINGS -B -DskipTests clean package'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
wrap([$class: 'Xvfb']) {
|
|
|
|
stage("Test") {
|
|
|
|
stage("Test") {
|
|
|
|
steps {
|
|
|
|
steps {
|
|
|
|
sh "mvn test"
|
|
|
|
sh "mvn test"
|
|
|
@ -46,20 +46,20 @@ pipeline {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage("Deploy To OSSRH") {
|
|
|
|
}
|
|
|
|
when {
|
|
|
|
stage("Deploy To OSSRH") {
|
|
|
|
branch 'release'
|
|
|
|
when {
|
|
|
|
}
|
|
|
|
branch 'release'
|
|
|
|
steps {
|
|
|
|
}
|
|
|
|
withCredentials([file(credentialsId: '076a36e8-d448-46fc-af11-7e7181a6cb99', variable: 'MAVEN_SETTINGS')]) {
|
|
|
|
steps {
|
|
|
|
sh 'mvn -s $MAVEN_SETTINGS -B -DskipTests clean deploy'
|
|
|
|
withCredentials([file(credentialsId: '076a36e8-d448-46fc-af11-7e7181a6cb99', variable: 'MAVEN_SETTINGS')]) {
|
|
|
|
}
|
|
|
|
sh 'mvn -s $MAVEN_SETTINGS -B -DskipTests clean deploy'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
post {
|
|
|
|
}
|
|
|
|
success {
|
|
|
|
post {
|
|
|
|
echo "Archiving Artifacts"
|
|
|
|
success {
|
|
|
|
archiveArtifacts artifacts: 'target/*.jar'
|
|
|
|
echo "Archiving Artifacts"
|
|
|
|
}
|
|
|
|
archiveArtifacts artifacts: 'target/*.jar'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|