Example:
32 - fail
31 - stable no change (triggered by parent)
30 - stable with changes
29 - fail
...
I want a query to return 30
So far what I got:
To query the last stable build number:
http://jenkins/job/project_name/lastStableBuild/buildNumber
This returns 31
. Not exactly what I need.
To check if this build has changes, the only way I know is :
http://jenkins/job/project_name/31/api/json
Then I need to go inside the huge JSON and check if any item in changeSet > items.
Is there a easier way to query for the latest stable build with changes (30) ?