Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change nightly call to support new API tokens #1206

Draft
wants to merge 7 commits into
base: jrivero/remove_the_longest_token_ever
Choose a base branch
from

Conversation

j-rivero
Copy link
Contributor

@j-rivero j-rivero commented Nov 14, 2024

Build on top of #1201.

1. Adapt the release.py to not use the jenkins.ini file

The PR prepares the new auth method to work with nightly generation. To call release.py with osrfbuild bot account this PR implements the --auth parameter that supports user:token to be passes as argument to authenticate in our Jenkins. The token can potentially be a Jenkins API token or a GitHub Token. d7dcb2d

This has the side effect on the test code that we no longer need the _RELEASEPY_TEST_CREDENTIALS, removed in af2ecae.

2. Change release-tools DSL to modify the nightly_scheduler code

Remove existing shared token injection and use credentials plugin in Jenkins to pass GITHUB_TOKEN. Use that with the --auth mechanism implemented in 1. 85ea888

3. Test DSL to check that token is able to login in Jenkins and use the osrfbuild fork

Hijack part of #353 and add a test to check that that the token is able to login into Jenkins. 07a29cb. The new token should have the fine-grained permissions on osrfbuild/homebrew-simulation fork for "Contents".

⚠️ Existing problem

The existing GITHUB_TOKEN for the osrfbuild user in Jenkins does not seem to work to authenticate into Jenkins. This links with the old PR #353 that probably needs to be resurrected first.

@j-rivero j-rivero changed the title Jrivero/releasepy param Change nightly call to support new API tokens Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant