Merge pull request #35 from RightBrain-Networks/feature/finalChanges

Stash & Unstack package
This commit is contained in:
Derek DeJonghe 2019-12-20 16:21:04 -05:00 committed by GitHub
commit 21585c5eab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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') }