api
Last updated
Was this helpful?
Last updated
Was this helpful?
reference:
BUILD_URL/stop
abort a build
BUILD_URL/term
forcibly terminate a build
BUILD_URL/kill
hard kill a pipeline
[!TIP] reference:
get particular fields for all builds
[!TIP] api format:
api/json?tree=allBuilds[Bartifact,description,building,displayName,duration,estimatedDuration,fullDisplayName,id,number,queueId,result,timestamp,url]
by jar
or
or
or
remove xml tag
i.e.:
[!TIP|label:api:]
https://<JENKINS_DOMAIN_NAME>/job/<jobname>/<buildnum>/api/json?tree=actions[parameters[*]]
[!TIP|label:jq tips:]
original
jq --raw-output .actions[].parameters
remove empty line:
jq --raw-output '[.actions[].parameters | select(length > 0) ]'
i.e.: