Comments (5)
Can we guarantee the order of the factories to make sure ours will be executed first ?
You could specify a high ordinal, e.g. @Extension(ordinal = 100000)
. I think that would let your factory be called first, especially if other implementations don't specify ordinals at all.
from checks-api-plugin.
yes, that's a problem since we didn't expect there will be such a use case; we thought users will always use our implementation for GitSCM or GitHub Branch Source SCM (they are exclusive so the order is fine).
Now maybe making the ChecksPublisher
comparable so that we can sort the stream before findFirst
will solve the problem. We can make our implementation the lowest priority and the users' will be used first.
from checks-api-plugin.
or making it user selectable and hiding the choice if only one extension is available?
it's a reasonably common pattern,
Used in at least github api endpoints, fingerprinting, junit pluggable storage
from checks-api-plugin.
I think I have the same problem in my git-forensics plugin that tries to select reference builds (and mines repositories). It would make sense if we could use the same approach. The same happens if someone checks out from several repositories: I think we should make it possible to configure the repository (and use the first one if nothing has been configured). See jenkinsci/git-forensics-plugin#213
from checks-api-plugin.
Thanks @KalleOlaviNiemitalo, I looked at the doc too quickly and never saw ordinal
there! It seems like it will solve my usecase.
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.