Pipeline that iterates over Build Results from another job

8 views
Skip to first unread message

Rafael Rezende

unread,
Apr 8, 2017, 10:52:10 PM4/8/17
to Jenkins Users
I would like to create a pipeline that every couple of weeks will make a quality assessment based on the archived artefacts of another job.
In short, it has to iterate over all the builds from that given job, for a given period of time, fetch one of the archived files from them and perform an analysis.

It should be possible to use the REST API to list the build results, compose a permalink for the artefacts I need etc etc.
But I wonder if there is a smarter way of doing that using the pipeline DSL or Jenkins API...

Something like this:
https://support.cloudbees.com/hc/en-us/articles/217591038-How-to-Iterate-Through-the-Last-Successful-Builds-in-Pipeline-Job
... but pointing to another job.
Reply all
Reply to author
Forward
0 new messages