When uploading artifacts using the API also upload the Build data

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

When uploading artifacts using the API also upload the Build data

Voolkanus
Hi,
I'm currently using Jenkins to upload some files to Artifactory. If I'm using a freestyle-job then I'm able to upload also the build information of the artifacts automatically.

The thing is not all job styles support this option and I would like to use the API to do so manually.
If someone can please show me an example of the command I need to run to make it happen.
For example today I'm using: curl -i -uuser:pass -T file "artifactory URL" to deploy artifacts from within jenkins. What should I add to that command to also upload the build info and create a trace-ability between the two tools.

Thanks in advance!