Comments (5)
Take a look at https://ci.jenkins.io/pipeline-syntax/ and select publishChecks
in the list to see the available aprameters and their documentation.
You can use the status
and conclusion
parameters.
publishChecks name: 'Jenkins/SBXDEPLOY Deploy', status: 'IN_PROGRESS', title: 'Cleanup', conclusion: 'NONE'
and
publishChecks name: 'Jenkins/SBXDEPLOY Deploy', status: 'COMPLETED', title: 'Cleanup', conclusion: 'FAILED'
from checks-api-plugin.
PublishChecksStep seems to use ChecksConclusion.SUCCESS by default. Does it work better if you explicitly specify conclusion: 'NONE'
, which would be the default in ChecksDetails.ChecksDetailsBuilder? If it does, then perhaps the default should be changed in PublishChecksStep, or perhaps GitHubChecksPublisher should be changed to ignore the conclusion if the status is IN_PROGRESS.
https://docs.github.com/en/rest/reference/checks#create-a-check-run--parameters
from checks-api-plugin.
Thanks for the guidance, I'm fairly new to jenkins and its plugins. Thanks for sharing the pipeline-syntax, a valuable tool indeed.
I've updated the code to include status and summary. This is my observation, not sure if its an issue.
-
publishChecks(name: 'Jenkins/Scratch Build and Deploy', title: 'Authorize - PASS', summary: '', text: '', detailsURL: "${JENKINS_URL}", status:'IN_PROGRESS')
on GitHub UI, it still shows green tick, even though status = IN_PROGRESS -
publishChecks(name: 'Jenkins/Scratch Build and Deploy', title: 'Authorize - FAIL', summary: '', text: '', detailsURL: "${JENKINS_URL}", status:'COMPLETED', conclusion: 'FAILURE')
on GitHub UI, shows the red cross
Thanks for answering my question, I will close this issue as its giving me what I was mainly looking for ie. red cross on fail. yellow dot for in_progress is a good to have.
from checks-api-plugin.
Thanks, explicitly specifying conclusion: 'NONE' did resolve the issue. Thanks again.
from checks-api-plugin.
@KalleOlaviNiemitalo thanks very much, the GitHub will automatically set the status to be completed if the conclusion is provided, so maybe I should change the conclusion to NONE when the status is queued or in_progress.
from checks-api-plugin.
Related Issues (20)
- Primary error message is not shown in error header, instead says `error in 'error' step` HOT 5
- Do not report handled exceptions HOT 3
- Build log Output truncated. - print tail of log instead of head HOT 2
- Allow using specific credentials for Checks HOT 5
- How do I create a custom rerun check in Pipeline HOT 1
- 1.7.5: download plugin checks-api to file: status code: 403, reason phrase: Forbidden HOT 2
- Phantom release 1.7.5 of checks-api HOT 1
- Possibility Of Specifying Credentials HOT 3
- Fix flaky test `BuildStatusChecksPublisherITest.shouldPublishStageDetails`
- [Question] Hanging checks with "withChecks()" HOT 5
- Include optional checks publisher to warnError HOT 1
- [doc] How to get started? HOT 5
- How to publish checks from sub-jobs HOT 1
- Dependency Dashboard
- Tests fail on Java 21 with Mockito errors HOT 2
- Setting Status checks name does not change it from the default Jenkins HOT 4
- Dependencies of flattened POM of latest release do not match `MANIFEST.MF`
- Return information about the check
- checks not working for Bitbucket scm HOT 1
- Steps with labels are not logged as errors HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from checks-api-plugin.