Skip to content

Commit 5462122

Browse files
committed
[None][infra] update github token name
Signed-off-by: Yiteng Niu <[email protected]>
1 parent cc4aa29 commit 5462122

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

jenkins/L0_MergeRequest.groovy

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -514,16 +514,17 @@ def getGithubMRChangedFile(pipeline, githubPrApiUrl, function, filePath="") {
514514
def result = null
515515
def pageId = 0
516516
withCredentials([
517-
string(
518-
credentialsId: 'github-token-trtllm-ci',
519-
variable: 'GITHUB_API_TOKEN'
517+
usernamePassword(
518+
credentialsId: 'github-cred-trtllm-ci',
519+
usernameVariable: 'NOT_USED_YET',
520+
passwordVariable: 'GITHUB_API_TOKEN'
520521
),
521522
]) {
522523
while(true) {
523524
pageId += 1
524525
def rawDataJson = pipeline.sh(
525526
script: """
526-
curl --header "Authorization: Bearer $GITHUB_API_TOKEN" \
527+
curl --header "Authorization: Bearer \${GITHUB_API_TOKEN}" \
527528
--url "${githubPrApiUrl}/files?page=${pageId}&per_page=20"
528529
""",
529530
returnStdout: true

0 commit comments

Comments
 (0)