For example,

To delete a job, you can make a POST request to Jenkins server as:

curl -X POST http://localhost:8080/job/my-job-name/doDelete --user 
jenkins:f1499cc9852c899d327a1f644e61a64d

where,
*username*: jenkins
*api token*: f1499cc9852c899d327a1f644e61a64d

On Tuesday, June 11, 2019 at 8:24:32 AM UTC+5:30, Parichay Barpanda wrote:
>
> Hi all,
>
> I am trying to figure out a way to add an environment variable to Jenkins 
> without using the UI. Is there a way to do it via API? The intention is to 
> let user add credentials to Jenkins without using UI. Please let me know if 
> you have a solution to this.
>
> Thanks.
>
> Regards,
> Parichay (baymac)
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/abc16929-b9e6-4e38-86c9-af7233f2451e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to