Repository navigation
2026.11.5
CI
-
On a Jenkins multibranch build of a Mergify merge queue draft pull request,
mergify ci git-refsandmergify ci scopesread the merge queue's git note for the draft's branch (CHANGE_BRANCH), as on GitHub Actions:scopesreturns the scopes the merge queue decided for the batch plus the merge queue scope, under both the head and the merge checkout strategies, andgit-refscompares from the commit the batch was built on, fetching it when a shallow clone lacks it. Reading the note fetches it fromorigin, which needs the repository's credentials in the step; without them the build is compared from its target branch as before. -
On a shallow clone,
mergify ci scopes, andmergify ci git-refson a Jenkins change request, now deepen the history until it holds the merge base of the pull request and its base, instead of stopping at the first common ancestor the clone shows. When a branch merged into the base since the pull request forked started from an older commit, that older commit was taken as the merge base, and the base's own changes since it were counted as the pull request's, selecting scopes it does not touch. A pull request whose base moved more than about 300 commits on since it forked no longer fails with "cannot find a common ancestor" on a depth-1 GitHub Actions checkout. -
The test names, failure messages and stack traces
mergify ci junit-processprints from a JUnit report, the test names and detailsmergify tests show,tests quarantineandtests runsprint from Mergify, and the JSON output of those commands and ofmergify ci queue-infoescape##[and a:that would start a line, on every line they span, so a pull request can no longer write a GitHub Actions workflow command into the job log through them. -
When Jenkins builds a Mergify merge queue branch as a plain branch, with no pull request (a multibranch job that discovers every branch, a plain Git source, a freestyle job),
mergify ci git-refsandmergify ci scopesnow read the merge queue's git note for the branch (GIT_BRANCH, elseBRANCH_NAME), as they do on a draft pull request build.scopesreturns the scopes the merge queue decided for the batch plus the merge queue scope, andgit-refscompares from the commit the batch was built on instead of the last commit. Reading the note fetches it fromorigin, which needs the repository's credentials in the step; without them the build is compared as before. -
On a Jenkins multibranch build of a Mergify merge queue draft pull request,
mergify ci queue-infoprints the batch under the merge checkout strategy too, once the target branch moved on since the draft was built: it reads the merge queue's git note for the draft's branch (CHANGE_BRANCH), asmergify ci git-refsandmergify ci scopesdo, on the draft's head rather than on Jenkins' merge of it. A Jenkins build of a pull request from a fork gets no batch, as with those commands. -
On a Jenkins multibranch build,
mergify ci junit-processfiles the tests under the multibranch project (my-repo) as both the pipeline and the job name, instead ofJOB_NAME(my-repo/PR-123), so every branch and pull request of the project reports under the same pipeline name and job name in CI Insights. A job outside a multibranch project keepsJOB_NAME. Its run id is the build'sJOB_NAME#BUILD_ID(my-repo/PR-123#5), as the Mergify Jenkins plugin reports it. -
mergify ci scopes,ci git-refs,ci queue-infoandtests runsno longer wait on a credential prompt whenoriginasks for one: the git call fails at once, as it does on a runner with no terminal. That covers git's own prompt, ssh's passphrase and host key questions, including through an ssh command the job names (such as the oneactions/checkoutwrites for itsssh-key), and Git Credential Manager's.
Test clients
- On a Jenkins multibranch build of a Mergify merge queue draft pull request, the test clients read the merge queue's note for the draft's branch (
CHANGE_BRANCH), so Fail First asks about the draft's batch and its verdicts are filed under the draft's branch instead ofPR-<n>. A pull request from a fork reads no note.