Update app release Jenkinsfile for configuration of new Jenkins server
Change-Id: Iffb38acb8c58f4eac90af78a78807d94165d9000
diff --git a/Jenkinsfile.release b/Jenkinsfile.release
index 21bf5af..0aa39bc 100644
--- a/Jenkinsfile.release
+++ b/Jenkinsfile.release
@@ -23,7 +23,7 @@
sh 'mvn versions:set -DnewVersion=' + newVersion + ' versions:commit'
}
-node ('master') {
+node ('ubuntu16.04-basebuild-1c-2g') {
stage ('Checkout code') {
cleanWs()
@@ -59,7 +59,9 @@
}
stage ('Release to Maven Central') {
- sh 'mvn -Prelease clean deploy'
+ configFileProvider([configFile(fileId: 'onoscord-apps', variable: 'MAVEN_SETTINGS')]) {
+ sh 'mvn -s $MAVEN_SETTINGS -Prelease clean deploy'
+ }
}
stage ('Wait for release on Sonatype') {