From 21c185c222cb4974dce98397d672bb6f0d794264 Mon Sep 17 00:00:00 2001 From: "Marlapati Venkata Naga Sai Teja[marlapativ]" Date: Thu, 13 Jun 2024 12:30:49 -0400 Subject: [PATCH] refactor: migrating github creds to github app --- scripts/jenkins/jobs/build-jobs.groovy | 2 +- scripts/jenkins/jobs/pull-request-jobs.groovy | 2 +- scripts/jenkins/plugins.txt | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/jenkins/jobs/build-jobs.groovy b/scripts/jenkins/jobs/build-jobs.groovy index ee94225..30c99bf 100644 --- a/scripts/jenkins/jobs/build-jobs.groovy +++ b/scripts/jenkins/jobs/build-jobs.groovy @@ -18,7 +18,7 @@ for (buildRepo in buildRepos) { branch("main") remote { github(url) - credentials('github') + credentials('github-app') } extensions { wipeOutWorkspace() diff --git a/scripts/jenkins/jobs/pull-request-jobs.groovy b/scripts/jenkins/jobs/pull-request-jobs.groovy index ea4a4a9..f44907d 100644 --- a/scripts/jenkins/jobs/pull-request-jobs.groovy +++ b/scripts/jenkins/jobs/pull-request-jobs.groovy @@ -16,7 +16,7 @@ for (pullRequestRepo in pullRequestRepos) { source { github { id(prJobName) - credentialsId('github') + credentialsId('github-app') repoOwner(pullRequestRepoOwner) repository(pullRequestRepo) repositoryUrl("") diff --git a/scripts/jenkins/plugins.txt b/scripts/jenkins/plugins.txt index 35df4a0..5ccd52f 100644 --- a/scripts/jenkins/plugins.txt +++ b/scripts/jenkins/plugins.txt @@ -35,3 +35,4 @@ workflow-aggregator:latest ws-cleanup:latest scm-filter-branch-pr:latest terraform:latest +golang:latest