I want to send my job’s build artifacts to an API using POST
method or curl
or any other way.
In particular, this is what I get when I visit my job:
This is a snippet of my Jenkinsfile
:
script {
archiveArtifacts([
artifacts: "build\doxy_manual.tar.gz, build\doxy_pdf_manuals.tar.gz",
])
curl --location 'MY API' --form 'attachment=@"WHAT TO PUT HERE??"'
}
How can I refer to doxy_manual.tar.gz
within my Jenkinsfile
in order to send it to my location using curl
?