-
-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Publish project binairies to Maven Repository Manager #232
Publish project binairies to Maven Repository Manager #232
Conversation
Thanks @lemeurherve Co-authored-by: Hervé Le Meur <[email protected]>
It seems that the latest build error is due to authentication issue to deploy the binary to repo.jenkins-ci.io. |
As far as I can tell, infra.ci.jenkins.io does not have any credential allowing deployment to repo.jenkins-ci.org, because it was not designed for this use case. There are multiple solutions for the next steps:
|
ci.jenkins.io doesn't have the credentials either. |
I'm not sure I want to use a GHA for something we (Jenkins community) should support. |
For the moment, this is not mandatory. We can revisit this when it is. |
The safe, supported and automated way for deploying artefacts other than Jenkins Core to the Maven repository is the CD process. Using Jenkins instead of GHA for this (an eventual As much as I would like to use Jenkins everywhere in term of "public image", as much the effort for using it on a public project is a different matter : the impact on public image of code injection on a public artefact is clearly a risk compared to accepting that GHA is not an enemy or a concurent, but a tool that provides its benefit when needed.
No problem, we (jenkins infra) started to brainstorm on the solution we could provide specifically for the plugin health to map it to other components that are deployed. @alecharp do you know if Maven can use a GitHub release's published artifact (or if there could be a Maven repository per repository, that could, then, be mirrored on JFrog) ? |
For the moment, I don't think the project is as a state where (almost) all commit to As the deployment of the project is in fact controlled by infra.ci.jenkins.io, the release process on my laptop is just generating a tag. The CI is then generating the binaries and the Docker image, deploy it to hub and that's it. The process to deploy the binaries could be controlled the same way where only infra.ci.jenkins.io could have to credentials to deploy to JFrog.
it seems to be technically possible (https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-apache-maven-registry) but that would mean to give infra.ci.jenkins.io permissions to write on the repository, no? Not sure about the mirroring nor if, with the effort to reduce the bandwidth, it is something we should do. Users would just have to mirror the GitHub repository themself or declare it in their |
Description
Resolves #231.
The main idea behind the split of the source of the application into modules is to allow external parties to create their own Probe and Scoring implementation and ran their version of the project.
However, the binaries necessary for this are not published to the Maven Repository Manager so those external parties cannot get the dependencies.
As this is a build modification, this is the test.
Submitter checklist
feature/
for new feature, or improvementsfix/
for bug fixesdocs/
for any documentation changesmvn verify
locally and all tests are passing successfully