Add Jenkins CI workflow for Renode unit tests#26
Open
dinkelk wants to merge 1 commit into
Open
Conversation
972a58b to
37168e5
Compare
c364ee4 to
2834a23
Compare
Jbsco
requested changes
May 11, 2026
Jbsco
requested changes
May 11, 2026
2834a23 to
9c20e18
Compare
Trigger Jenkins generic-webhook on pull_request and push: main, then poll Jenkins until the build finishes, mirroring its result back to GitHub. The workflow's check on the PR is the commit status; no separate Jenkins -> GitHub callback is needed. Required repository secrets: JENKINS_WEBHOOK_TOKEN Generic Webhook Trigger token on the Jenkins job JENKINS_USER Jenkins service-account username (for API polling) JENKINS_API_TOKEN Jenkins API token for that user CF_ACCESS_CLIENT_ID Cloudflare Access service token client ID CF_ACCESS_CLIENT_SECRET Cloudflare Access service token client secret
9c20e18 to
419f553
Compare
Jbsco
approved these changes
May 11, 2026
Collaborator
Jbsco
left a comment
There was a problem hiding this comment.
Nice addition to CI! Looks good to me once passing.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds the GitHub Actions workflow that triggers our Jenkins renode unit-test job on PRs and
push: main, polls Jenkins until the build finishes, and mirrors the Jenkins result back to the PR check.How it works
adamant_xmera_components_ref(= the PR head SHA on PR builds, orgithub.shaon push) and any optional ref overrides supplied viaworkflow_dispatch.executable.url→ build API →result. Jenkins's internal-IPexecutable.urlis rewritten to the Cloudflare-fronted host so the GH runner can reach it.Override capability
For DROP / integration testing,
workflow_dispatchaccepts optional ref inputs for any of the parameterized repos:adamant_xmera_components_ref(default: PR head SHA)adamant_refadamant_example_reffp32_fsw_xmera_refproject_refEmpty inputs use the Jenkins job's hardcoded fallback. URL overrides are supported on the Jenkins side (one parameter per repo) but not exposed via this workflow's inputs to keep the GH UI tight.
Required repository secrets
JENKINS_WEBHOOK_TOKENJENKINS_USERJENKINS_API_TOKENCF_ACCESS_CLIENT_IDCF_ACCESS_CLIENT_SECRET