Skip to content

Commit

Permalink
chore: changing the credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
prajjwalkumar17 committed Dec 10, 2023
1 parent 6bbf077 commit 228a002
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .jenkins/ci-checks.Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ def checkoutRepository(String orgName, String repoName, String branchName) {
localBranch(branchName)
],
userRemoteConfigs: [[
credentialsId: 'hyperswitch-cloud-github-deploy-key',
credentialsId: 'GH_TOKEN_CHECKOUT',
url: "[email protected]:${orgName}/${repoName}.git"
]]
)
Expand All @@ -306,8 +306,8 @@ def splitCommaSeparatedStringAndTrim(String s) {
// Configure git username and email
def configureGitUsernameAndEmail() {
sh '''
git config --local user.name 'hyperswitch-bot[bot]'
git config --local user.email '148525504+hyperswitch-bot[bot]@users.noreply.github.com'
git config --local user.name 'intruder-bot[bot]'
git config --local user.email 'intruder-bot[bot]@users.noreply.github.com'
'''
}

Expand All @@ -329,9 +329,9 @@ def setChecksInProgress (
String outputText,
String checkStartTime
) {
withCredentials(
[usernamePassword(credentialsId: 'hyperswitch-bot-github-app', passwordVariable: 'GH_TOKEN', usernameVariable: 'GITHUB_APP_ID')]
) {
withCredentials(
[usernamePassword(credentialsId: 'intruder-bot', passwordVariable: 'GH_TOKEN', usernameVariable: '425218')]
) {
sh """
echo '{
"name": "${checkName}",
Expand Down Expand Up @@ -374,9 +374,9 @@ def setPrCheckCompleted (
String checkEndTime
) {
// Conclusion can be one of: `action_required`, `cancelled`, `failure`, `neutral`, `success`, `skipped`, `stale`, `timed_out`
withCredentials(
[usernamePassword(credentialsId: 'hyperswitch-bot-github-app', passwordVariable: 'GH_TOKEN', usernameVariable: 'GITHUB_APP_ID')]
) {
withCredentials(
[usernamePassword(credentialsId: 'intruder-bot', passwordVariable: 'GH_TOKEN', usernameVariable: '425218')]
) {
sh """
echo '{
"name": "${checkName}",
Expand Down

0 comments on commit 228a002

Please sign in to comment.