Skip to content

Commit

Permalink
Set git config
Browse files Browse the repository at this point in the history
  • Loading branch information
dtwaddle2-r7 committed Nov 17, 2023
1 parent 24c4411 commit 1023ba4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,10 @@ pipeline {
stages {
stage('tag') {
steps {
sh """git tag -a "v${VERSION}" -m "Version ${VERSION}" && git push --tags"""
withCredentials([usernamePassword(credentialsId: 'github-app-key', usernameVariable: 'GH_APP', passwordVariable: 'GH_TOKEN')]) {
setGitConfig()
sh """git tag -a "v${VERSION}" -m "Version ${VERSION}" && git push --tags"""
}
}
}

Expand All @@ -69,7 +72,7 @@ pipeline {
curl --silent --show-error \
-H "Content-Type: application/json" \
-H "Accept: application/vnd.github.v3+json" \
-H "Authorization: token \${GH_TOKEN}" \
-H "Authorization: token ${GH_TOKEN}" \
-d '{"tag_name":"'"v${VERSION}"'", "generate_release_notes": true, "name": "'"v${VERSION} - \$(date +"%Y.%m.%d")"'"}' \
https://api.github.com/repos/rapid7/recog/releases > recog-content-releases-response.json
"""
Expand Down

0 comments on commit 1023ba4

Please sign in to comment.