GitHub Release

This commit is contained in:
Layla 2019-12-20 11:26:01 -05:00
parent 157317f9d6
commit cc563c5555

14
Jenkinsfile vendored
View File

@ -78,6 +78,20 @@ pipeline {
}
}
}
stage('Publish Release')
{
when {
expression {
"${env.SEMVER_STATUS}" == "0" && "${env.BRANCH_NAME}" == "master"
}
}
steps
{
createGitHubRelease('rbn-opsGitHubToken', 'RightBrain-Networks/auto-semver', "${env.SEMVER_RESOLVED_VERSION}",
"${env.SEMVER_RESOLVED_VERSION}", ["auto-semver.tar.gz" : "dist/${env.SERVICE}-*.tar.gz"])
}
}
stage('Push Version and Tag') {
steps {
echo "The current branch is ${env.BRANCH_NAME}."