From d68bf4204baf46f23d81ef0d1da2e9cab1ea7baa Mon Sep 17 00:00:00 2001 From: Jose Luis Rivero Date: Wed, 20 Nov 2024 16:47:49 +0100 Subject: [PATCH] Replace osrf-migration token by osrfbuild-token in bottle_job_builder job Signed-off-by: Jose Luis Rivero --- jenkins-scripts/dsl/brew_release.dsl | 2 +- jenkins-scripts/lib/homebrew_bottle_creation.bash | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/jenkins-scripts/dsl/brew_release.dsl b/jenkins-scripts/dsl/brew_release.dsl index 704c28e08..69f847fa0 100644 --- a/jenkins-scripts/dsl/brew_release.dsl +++ b/jenkins-scripts/dsl/brew_release.dsl @@ -135,7 +135,7 @@ bottle_job_builder.with preBuildCleanup() credentialsBinding { // crendetial name needs to be in sync with provision code at infra/osrf-chef repo - string('GITHUB_TOKEN', 'osrf-migration-token') + string('GITHUB_TOKEN', 'osrfbuild-token') } } diff --git a/jenkins-scripts/lib/homebrew_bottle_creation.bash b/jenkins-scripts/lib/homebrew_bottle_creation.bash index 39cad2566..e7db53f51 100644 --- a/jenkins-scripts/lib/homebrew_bottle_creation.bash +++ b/jenkins-scripts/lib/homebrew_bottle_creation.bash @@ -83,6 +83,7 @@ brew tap osrf/simulation # replace with 'hub -C $(brew --repo osrf/simulation) pr checkout ${ghprbPullId}' # after the following hub issue is resolved: # https://github.com/github/hub/issues/2612 +# hub requires authentication to operate. GITHUB_TOKEN enviroment variable for example pushd $(brew --repo osrf/simulation) && \ hub pr checkout ${ghprbPullId} && \ popd