From b6253e440ea8d30a0dd67c7a6fe200b8bf955644 Mon Sep 17 00:00:00 2001 From: Endolf Date: Fri, 25 May 2018 18:28:11 +0100 Subject: [PATCH] Start of a release pipeline build --- Jenkinsfile | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 49bdb21..6e39b3c 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -81,6 +81,7 @@ pipeline { } } stage('Deploy') { + milestone() agent { label "linux" } @@ -101,5 +102,38 @@ pipeline { } } } + stage('Release') { + timeout(time:5, unit:'DAYS') { + milestone() + input { + message: "Do you wish to release?" + ok: "Release" + } + input { + message: "Are you sure, this cannot be undone?" + ok: "Release" + } + milestone() + } + agent { + label "linux" + } + steps { + unstash 'windows-natives' + unstash 'osx-natives' + unstash 'linux-natives' + sh 'echo $GPG_SECRET_KEYS | base64 --decode | gpg --batch --import' + sh 'echo $GPG_OWNERTRUST | base64 --decode | gpg --import-ownertrust' + withMaven( + maven: 'Maven 3.5.3', + jdk: 'OpenJDK 9', + globalMavenSettingsConfig: 'global-maven-settings-ossrh', + mavenOpts: '-Djavax.net.ssl.trustStore=/etc/ssl/certs/java/cacerts' //Work around for JDK9 missing cacerts + ) { + sh "mvn -P windows,linux,osx,wintab versions:set -DremoveSnapshot" + sh "mvn -P windows,linux,osx,wintab versions:set -DnextSnapshot" + } + } + } } } \ No newline at end of file