Closed timja closed 6 months ago
"Tests / linux-jdk17 / Linux - JDK 17 - Test" looks a bit redundant. Will withChecks('', includeStage: true)
omit the final separator and leave only "Tests / linux-jdk17 / Linux - JDK 17"?
Oh I see, the "Tests" at the start is what was specified in withChecks
. So with an empty step name and omitting the separator, it'd be "linux-jdk17 / Linux - JDK 17 - Test"?
Oh I see, the "Tests" at the start is what was specified in
withChecks
. So with an empty step name and omitting the separator, it'd be "linux-jdk17 / Linux - JDK 17 - Test"?
Yeah should be that
Thanks for the review 😄
Relates to https://github.com/jenkinsci/checks-api-plugin/issues/199
I can't see a specific issue for it but I think its came up for it.
The specific usecase I have is for Jenkins core. Multi hour testsuite in some cases. I would like the check to be changed to pending as soon as it starts running the maven build, which can be done by wrapping it with:
You could work around it before by specifying the full checks name in
withChecks
, e.g. the stage yourself manually but its clunky.Example checks names:
Ideally you wouldn't even need to specify the name
Tests
as thats the default in the JUnit plugin but the only workaround I could think of was making the JUnit step a block scoped step, but I figured this was probably useful to other plugins.Thoughts?
Testing done
TODO Look at any unit or integration tests
Manually tested at https://github.com/timja-org/junit-attachments-test/pull/9