repository-connector-plugin
repository-connector-plugin copied to clipboard
feat(AritfactDeployer): Record deployments for use in plugins and via API
When deploying a -SNAPSHOT
build, I need a way to look up what the resolved version and the deployed artifact's file name when ArtifactDeployer deploys it to the remote repository.
So, this PR adds machinery to allow recording deployments on the Build object via an InvisibleAction. This will show up in API calls, and will be available for use by other plugins.
Also, I had issues running tests locally under JDK 17, so I bumped the jenkins version to the oldest still-supported LTS releas.
This is not related to any Jira issues.
Built on top of #62 , so that should be merged first.
Testing done
For tests, it's not clear how to mock out the interactions with the aether library during deployment. Do you have any hints on how to test deployment?
I've manually tested by running a job and inspecting the output of job/<job>/build/<number>/api/json?pretty=true
to ensure the artifacts are recorded as expected.
### Submitter checklist
- [x] Make sure you are opening from a **topic/feature/bugfix branch** (right side) and not your main branch!
- [x] Ensure that the pull request title represents the desired changelog entry
- [x] Please describe what you did
- [x] Link to relevant issues in GitHub or Jira
- [x] Link to relevant pull requests, esp. upstream and downstream changes
- [ ] Ensure you have provided tests - that demonstrates feature works or fixes the issue