From 273dd15d739603807d0b9d3cf18447dd1c554a51 Mon Sep 17 00:00:00 2001 From: Linsong Wang Date: Tue, 10 Dec 2024 16:42:53 -0800 Subject: [PATCH] remove instance-specific configs --- Jenkinsfile | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 2c9762d..b498947 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,10 +1,7 @@ AGENT_YAML = ''' apiVersion: v1 kind: Pod - metadata: - namespace: oss-agent spec: - serviceAccountName: oss-agent containers: - name: maven image: maven:3.8.6-openjdk-8-slim @@ -30,7 +27,7 @@ pipeline { } environment { - GITHUB_TOKEN_ID = 'github-token-wanglinsong' + GITHUB_OSS_TOKEN_ID = 'oss-presto-github-fork-token' } options { @@ -92,7 +89,7 @@ pipeline { ]], submoduleCfg: [], userRemoteConfigs: [[ - credentialsId: "${GITHUB_TOKEN_ID}", + credentialsId: "${GITHUB_OSS_TOKEN_ID}", url: 'https://github.com/wanglinsong/prestodb.github.io.git' ]] sh ''' @@ -156,7 +153,7 @@ pipeline { steps { withCredentials([ usernamePassword( - credentialsId: "${GITHUB_TOKEN_ID}", + credentialsId: "${GITHUB_OSS_TOKEN_ID}", passwordVariable: 'GIT_PASSWORD', usernameVariable: 'GIT_USERNAME')]) { sh '''