Try this way: (for example delete the job)
curl --silent --show-error http://<username>:<api-token>@<jenkins-server>/job/<job-name>/doDelete
The api-token can be obtained from http://<jenkins-server>/user/<username>/configure
.
More Related Contents:
- Use bash curl with oauth to return google apps user account data? [closed]
- How to stop a build in Jenkins via the REST api ?
- Using cURL for API automation in Karate
- Twitter API – Reasons for “invalid or expired token”
- How do I get currency exchange rates via an API such as Google Finance? [closed]
- REST API Best practices: Where to put parameters? [closed]
- How to use cURL to get jSON data and decode the data?
- How to post in Google+ wall
- Asserting and using conditions for an array response in Karate
- Codeigniter REST CSV import to mysql
- Getting LinkedIn Profile Picture
- Getting someone’s Steam inventory
- How to make a custom LinkedIn share button
- Instagram API doesn’t find any liked posts for sandbox users
- Set timeout for HTTPClient get() request
- Express Checkout error message: “Security header is not valid”
- Can a raw Lucene index be loaded by Solr?
- Call another rest api from my server in Spring-Boot
- Providing authentication info via msxml2.ServerXMLHTTP
- Where do I find the project ID for the GitLab API?
- Using secret api keys on travis-ci
- aws api gateway & lambda: multiple endpoint/functions vs single endpoint
- How do I download a file or photo that was sent to my Telegram bot?
- Bloomberg Open API
- How to open-source an application that uses API keys [closed]
- Can anyone give a good example of using org.apache.maven.cli.MavenCli programmatically?
- Getting historical data from Twitter [closed]
- How to format numbers in Google API Linechart?
- get releases empty in github api
- How do I combine multiple OpenAPI 3 specification files together?