Skip to content

Commit

Permalink
Try to fix Jenkinsfile yet again
Browse files Browse the repository at this point in the history
  • Loading branch information
Heath123 committed Jul 3, 2020
1 parent d432d15 commit 0317605
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ pipeline {
post {
success {
archiveArtifacts artifacts: '**/out/*.zip', fingerprint: true
withCredentials([usernamePassword(credentialsId: 'GitHubPAToken', usernameVariable: 'USERNAME', passwordVariable: 'TOKEN')]) {
sh 'export GITHUB_TOKEN=$TOKEN'
withCredentials([usernamePassword(credentialsId: 'GitHubPAToken', usernameVariable: 'USERNAME', passwordVariable: 'GITHUB_TOKEN')]) {
sh 'echo "Creating a new release in github"'
sh 'github-release release --user Heath123 --repo pakkit --tag v${BUILD_NUMBER} --name "Jenkins build ${BUILD_NUMBER}"'
sh 'echo "Uploading the artifacts into github"'
Expand Down

0 comments on commit 0317605

Please sign in to comment.