jenkins.io
jenkins.io copied to clipboard
Rest api documentation to get build information from jenkins using rest api
Hi Team ,
Please provide any rest api documentation to fetch build details through api.
Below call will fetch the details. http://YOUR_JENKINS:8080/job/YOUR_JOB/api/
But looking for any documentation that provides sample response from rest api call.
@prasad12k did you review the REST API page?
Did you consider one of the REST API wrappers (Python, Ruby, Java)?
Did you review the documentation for the /api/ page of the specific location where you wanted the data?
Hi @MarkEWaite
Thanks for your reply.
I have checked above mentioned restapi and its talking about build details. But didn't find ant rest api calls for deployments.
looking for rest api call where it can give deployment status and rundate ........
Please suggest ,Is there any api available for getting jenkins deployment details.
Example : In devops we will get deployment details using below rest api
https://vsrm.dev.azure.com/{organization}/{project}/_apis/release/deployments?definitionId={definitionId}&definitionEnvironmentId={definitionEnvironmentId}&createdBy={createdBy}&minModifiedTime={minModifiedTime}&maxModifiedTime={maxModifiedTime}&deploymentStatus={deploymentStatus}&operationStatus={operationStatus}&latestAttemptsOnly={latestAttemptsOnly}&queryOrder={queryOrder}&$top={$top}&continuationToken={continuationToken}&createdFor={createdFor}&minStartedTime={minStartedTime}&maxStartedTime={maxStartedTime}&sourceBranch={sourceBranch}&api-version=6.0
MSDN docs link
https://docs.microsoft.com/en-us/rest/api/azure/devops/release/deployments/list?view=azure-devops-rest-6.0
Or please suggest any other apis or C# libraries available?
Thanks
Jenkins has the concept of a job and can report the results of a job. Plugins may provide additional concepts like a deployment. That would be described in the documentation of the specific plugin.
Hi @MarkEWaite any Went through the below deploy pulg in documentation ,but didn't find any rest api to fetch deployment details. Please suggest https://plugins.jenkins.io/deploy/#documentation Thanks