Comments (5)
That was discussed in #49 (comment).
from checks-api-plugin.
The pattern I'd always intended to use with this (but never got round to implementing) was to add an optional checks publisher to warnError
. For e.g. running tests you can do:
withChecks('My Tests') {
sh 'run_tests > results.xml'
junit 'results.xml'
}
and that works fine; sometimes you have a one-shot command where you just want to report success or failure. It would be nice to extend warnError
to be checks aware:
withChecks('One Shot') {
warnError('One Shot') {
sh 'one_shot'
}
}
ie, have warnError report the appropriate success/failure message to the active checks context.
Alternatively get warnError
to be fully responsible for doing the checks itself, so
warnError(message: 'One Shot', publishChecks: true) {
sh 'one_shot'
}
Not sure why I never got round to doing it, but happy to take another look if people think it might be a useful pattern?
from checks-api-plugin.
Thanks @KalleOlaviNiemitalo ! That explains it.
Though this should be documented properly I think.
from checks-api-plugin.
created #200 to track enhancement
from checks-api-plugin.
Semi related pull request which helps in some cases: #254
from checks-api-plugin.
Related Issues (20)
- 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`
- 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
- [`withChecks`] `includeStage` missing in Pipeline Snippet Generator
- 2.2.1 Release Information Missing HOT 2
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.