Stash & Unstack package

Stash & Unstack package

Stash & Unstack package

* -> env.VERSION

*

Fix

Use SEMVER_NEW_VERSION

Semver
This commit is contained in:
Layla 2019-12-20 15:32:46 -05:00
parent f86340fc72
commit 30ccea4c39

11
Jenkinsfile vendored
View File

@ -42,6 +42,8 @@ pipeline {
sh "python setup.py sdist"
stash includes: "dist/semver-${env.SEMVER_NEW_VERSION}.tar.gz", name: 'PACKAGE'
}
post{
// Update Git with status of build stage.
@ -88,9 +90,10 @@ pipeline {
}
steps
{
unstash 'PACKAGE'
// Create GitHub Release & Upload Artifacts
createGitHubRelease('rbn-opsGitHubToken', 'RightBrain-Networks/auto-semver', "${env.SEMVER_RESOLVED_VERSION}",
"${env.SEMVER_RESOLVED_VERSION}", ["auto-semver.tar.gz" : "dist/${env.SERVICE}-*.tar.gz"])
"${env.SEMVER_RESOLVED_VERSION}", ["auto-semver.tar.gz" : "dist/semver-${env.SEMVER_NEW_VERSION}.tar.gz"])
// Update DockerHub latest tag
sh("""
@ -109,12 +112,6 @@ pipeline {
}
}
}
stage('Push Version and Tag') {
steps {
echo "The current branch is ${env.BRANCH_NAME}."
gitPushTags(env.GITHUB_KEY)
}
}
}
post {
success { updateGithubCommitStatus(GITHUB_URL, 'Passed build and test', 'SUCCESS') }