Skip to content

Commit

Permalink
Stash & Unstack package
Browse files Browse the repository at this point in the history
Stash & Unstack package

Stash & Unstack package

* -> env.VERSION

*

Fix

Use SEMVER_NEW_VERSION

Semver
  • Loading branch information
yeslayla committed Dec 20, 2019
1 parent f86340f commit 30ccea4
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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("""
Expand All @@ -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') }
Expand Down

0 comments on commit 30ccea4

Please sign in to comment.