Closed skaldarnar closed 3 years ago
Example payload, positive case:
{
"_class": "org.jenkinsci.plugins.workflow.job.WorkflowJob",
"builds": [
{
"_class": "org.jenkinsci.plugins.workflow.job.WorkflowRun",
"artifacts": [
{ "relativePath": "distros/omega/build/distributions/md5sums.txt" },
{ "relativePath": "distros/omega/build/distributions/sha256sums.txt" },
{
"relativePath": "distros/omega/build/distributions/TerasologyOmega.zip"
}
],
"number": 1,
"result": "SUCCESS",
"timestamp": 1604285977306,
"url": "http://jenkins.terasology.io/teraorg/job/Nanoware/job/Omega/job/develop/1/"
}
]
}
This has become quite a behemoth of a PR for the small fixes that were actually necessary :see_no_evil: I think I learned a lot about testing (and making code testable), and I discovered more bugs while writing more tests.
Testing JenkinsRepositoryAdapter -
fetchReleases
IO andprocessing of server resource(s) to internal dataCollaborators
JenkinsClient
- for requesting build information in internal format and fetch filesmodule.*
- the internal data modelrepositories.Jenkins
- typed representation of the JSON modelBehavior
JenkinsClient
open another connection to that URLJenkinsClient
to fetch the content of the fileIdeas
JenkinsClient
fetchReleases
as a unit