api
reference:
to get crumb and sessoin :
safeRestart via API
get builds information
[!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]
list plugins
by
jar
or
builds
get particular build parameters
remove xml tag
i.e.:
get all parameters via Json format
[!TIP|label:api:]
https://<JENKINS_DOMAIN_NAME>/job/<jobname>/<buildnum>/api/json?tree=actions[parameters[*]]
[!TIP|label:jq tips:]
remove empty line from output i.e.:
original
jq --raw-output .actions[].parameters
remove empty line:
jq --raw-output '[.actions[].parameters | select(length > 0) ]'
Last updated