Skip to content

Commit

Permalink
Fixes and changes for consistency
Browse files Browse the repository at this point in the history
Signed-off-by: Jose Luis Rivero <[email protected]>
  • Loading branch information
j-rivero committed Nov 26, 2024
1 parent 242a672 commit 67a442b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions jenkins-scripts/dsl/_configs_/OSRFCredentials.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ class OSRFCredentials
credentialsBinding {
crendentials_list.each { credential_keyword ->
if (credential_keyword == 'OSRFBUILD_GITHUB_TOKEN') {
usernamePassword('OSRFBUILD_USER',
'OSRFBUILD_TOKEN',
usernamePassword('OSRFBUILD_GITHUB_USER',
'OSRFBUILD_GITHUB_TOKEN',
'github-osrfbuild-apitoken')
} else if (credential_keyword == 'OSRFBUILD_JENKINS_TOKEN') {
usernamePassword('OSRFBUILD_JENKINS_USER',
Expand Down
2 changes: 1 addition & 1 deletion jenkins-scripts/dsl/_configs_/OSRFReleasepy.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class OSRFReleasepy
echo "releasing \${n} (from branch \${src_branch})"
python3 ./scripts/release.py \${dry_run_str} "\${PACKAGE}" "\${VERSION}" \${extra_osrf_repo} \
--auth "\${OSRFBUILD_USER}:\${OSRFBUILD_TOKEN}"' \
--auth "\${OSRFBUILD_JENKINS_USER}:\${OSRFBUILD_JENKINS_TOKEN}" \
--source-tarball-uri \${SOURCE_TARBALL_URI} \
--release-repo-branch \${RELEASE_REPO_BRANCH} \
--upload-to-repo \${UPLOAD_TO_REPO}
Expand Down
2 changes: 1 addition & 1 deletion jenkins-scripts/dsl/ignition_collection.dsl
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ nightly_scheduler_job.with

echo "releasing \${n} (from branch \${src_branch})"
python3 ./scripts/release.py \${dry_run_str} "\${n}" nightly \
--auth "\${OSRFBUILD_USER}:\${OSRFBUILD_TOKEN}"' \
--auth "\${OSRFBUILD_JENKINS_USER}:\${OSRFBUILD_JENKINS_TOKEN}" \
--release-repo-branch main \
--nightly-src-branch \${src_branch} \
--upload-to-repo nightly
Expand Down
8 changes: 4 additions & 4 deletions jenkins-scripts/dsl/test.dsl
Original file line number Diff line number Diff line change
Expand Up @@ -153,12 +153,12 @@ test_credentials_token_job.with
echo " + Testing OSRFBUILD_GITHUB_TOKEN ability to push into the fork osrfbuild/homebrew-simulation"
echo " (out of the test is the ability to create pull requests into osrf/homebrew-simulation)"
rm -fr homebrew-simulation
git clone https://github.com/\${OSRFBUILD_USER}/homebrew-simulation.git
git clone https://github.com/\${OSRFBUILD_GITHUB_USER}/homebrew-simulation.git
cd homebrew-simulation
git config user.name \${OSRFBUILD_USER} --replace-all
git config user.email "\${OSRFBUILD_USER}@openrobotics.org" --replace-all
git config user.name \${OSRFBUILD_GITHUB_USER} --replace-all
git config user.email "\${OSRFBUILD_GITHUB_USER}@openrobotics.org" --replace-all
set +x
git config url."https://osrfbuild:\${OSRFBUILD_TOKEN}@github.com/osrfbuild/homebrew-simulation.git".InsteadOf https://github.com/osrfbuild/homebrew-simulation.git
git config url."https://osrfbuild:\${OSRFBUILD_GITHUB_TOKEN}@github.com/osrfbuild/homebrew-simulation.git".InsteadOf https://github.com/osrfbuild/homebrew-simulation.git
set -x
GIT_TERMINAL_PROMPT=0 git push -u origin master --dry-run
""".stripIndent())
Expand Down

0 comments on commit 67a442b

Please sign in to comment.