Med braim
Med braim

Reputation: 473

Run a Curl comand from a jenkins job

can anyone tell me how we can run a curl command from jenkins.
I'm on windows 7 and i'm trying to put .sh on artifactory from a job jenkins.
thanks

Upvotes: 1

Views: 8415

Answers (1)

tarantoga
tarantoga

Reputation: 1106

So I understand that you want to upload a file to Artifactory by using curl and Artifactory's REST API?

The easiest would be to use the Artifactory plugin, and upload files from your workspace into an Artifactory repository.

If you want to do it without that:

  1. Install cURL for Windows on the node
  2. Add a "Windows batch script" build step, and call cURL with the right URL

Upvotes: 1

Related Questions