I have a jenkins pipeline that runs some docker containers over ssh on external servers, it monitors the containers until they’ve all completed.
I need each container to be able to post a file to the jenkins build, i was under the impression this could be done with a curl request such as this example:
curl -v -X POST --user username:api-key-here --form "file=@/path/to/local/file.txt" http://my-jenkins-url.com/job/job%20name/63/ws
Where “63” is the build number
Jenkins version: 2.454
The curl response says it was ok, but no files appear in the workspace
in jenkinsAccept: /
Content-Length: 189
Content-Type: multipart/form-data; boundary=————————bfba94ff096e5f3f
- We are completely uploaded and fine