Skip to content

Commit

Permalink
Changed the credential id in Jenkinsfile
Browse files Browse the repository at this point in the history
  • Loading branch information
alecszaharia committed Feb 26, 2019
1 parent 6c38321 commit 075dda9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def notifySlack(String buildResult = 'STARTED', String zipPath = '') {
if ( buildResult == "SUCCESS" ) {
slackSend color: "good", message: "Job: ${env.JOB_NAME} with buildnumber ${env.BUILD_NUMBER} was successful."+buildInfo

withCredentials([string(credentialsId: 'Slack Oauth Token', variable: 'SECRET')]) {
withCredentials([string(credentialsId: 'Slack-Oauth-Token', variable: 'SECRET')]) {
sh '''
set +x
curl -F file=@$BUILD_ZIP_PATH -F channels=#jenkins -F token="$SECRET" https://slack.com/api/files.upload
Expand Down Expand Up @@ -47,7 +47,7 @@ pipeline {
}

git url: "[email protected]:/ThemeFuse/Brizy",
credentialsId: '7ca32202-12d1-4189-9ff3-093095f8ffc3',
credentialsId: 'Git',
branch: params.releaseBranch

sh 'git config user.name "Alex Zaharia"'
Expand Down

0 comments on commit 075dda9

Please sign in to comment.