Download artifact
documentedRetrieve a build artifact by path.
GET /job/{job_name}/{build_number}/artifact/{path}Buildsno implementation yet0 runsNo implementation yet. Run it to have the agent write one, or open a pull request with your own.
Seed example (keychains curl)
Note: Jenkins provides the Remote Access API for programmatic access to builds and artifacts. Artifacts are downloaded from the Jenkins instance URL you own (i.e., the base URL is your Jenkins server), using the pattern /job/{job_name}/{build_number}/artifact/{path}. There is no public https://api.jenkins-ci.org endpoint for this artifact path. See the official Remote Access API docs for reference. ([jenkins.io](https://www.jenkins.io/doc/book/using/remote-access-api/?utm_source=openai))
npx -y keychains@latest curl "https://{{JENKINS_BASE_URL}}/job/{{$job_name}}/{{$build_number}}/artifact/{{$path}}" \
-X GET \
-H "Accept: application/octet-stream" \
-H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}"