string(name: 'version', defaultValue: '', description: 'The version you are releasing, for example, v0.5.0')
string(name: 'commit', defaultValue: '', description: 'Optional commit hash for this release, for example, 56b65dba917e50132b0a540ae6ff4c5bbfda2db6. If empty the latest commit hash will be used.')
}
stages {
stage('Tag Release') {
environment {
GITHUB = credentials('rook-github')
}
steps {
// github credentials are not setup to push over https in jenkins. add the github token to the url
sh "git config remote.origin.url https://${GITHUB_USR}:${GITHUB_PSW}@\$(git config --get remote.origin.url | sed -e 's/https:\\/\\///')"