From ff84bde9783481794f56fcb5460b95bc5021096a Mon Sep 17 00:00:00 2001 From: Thijs Lemmens Date: Thu, 17 Jan 2019 09:21:02 +0100 Subject: [PATCH] DEVEM-353 Release v4.0.3 --- CHANGELOG.md | 2 +- Jenkinsfile | 40 ---------------------------------------- 2 files changed, 1 insertion(+), 41 deletions(-) delete mode 100644 Jenkinsfile diff --git a/CHANGELOG.md b/CHANGELOG.md index 8b1d3992..8cf1310b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # XeniT Gradle Plugin - Changelog -## Version 4.0.3 - (Unreleased) +## Version 4.0.3 - 2019-01-17 ### Fixes diff --git a/Jenkinsfile b/Jenkinsfile deleted file mode 100644 index 2b0f203e..00000000 --- a/Jenkinsfile +++ /dev/null @@ -1,40 +0,0 @@ - -node { - - stage ('Checkout') { - checkout scm - - // env.GIT_BRANCH is null !!! - // so workaround: - //def gitBranch = sh(returnStdout: true, script: "git branch | grep '^*' | cut -d' ' -f 2").trim() - - } - def gitBranch = env.BRANCH_NAME // https://issues.jenkins-ci.org/browse/JENKINS-30252 - - println "********** GIT_BRANCH: [${gitBranch}]" - println "********** BUILD_NUMBER: [" + env.BUILD_NUMBER + "]" - - def buildNr = "SNAPSHOT" - def publishJarTask = "publishMavenJavaPublicationToSnapshotRepository" - if (gitBranch == "release") { - buildNr = env.BUILD_NUMBER - publishJarTask = "publishMavenJavaPublicationToReleaseRepository" - } - - try { - stage ('build and test') { - sh "./gradlew clean build --continue -i" - } - - stage ('Publishing') { - sh "./gradlew :${publishJarTask} --continue -i" - } - - } catch (err) { - currentBuild.result = "FAILED" - println err - } finally { - step([$class: "JUnitResultArchiver", testResults: "**/build/**/TEST-*.xml"]) - } - -}