Re: Indicate changes since last build

2018-09-07 Thread Craig Rodrigues
I don't have a good answer for you. What I would do is: (1) Iterate over currentBuild.changeSets (2) let prevBuild = currentBuild.previousBuild (3) iterate over the changesets (4) keep going back to the previousBuild, depending on if currentBuild.resultIsWorseOrEqualTo("UNSTABLE") (5) gather

Re: Indicate changes since last build

2018-09-06 Thread Wouter Slob
Hi Craig, thanks for your reply! It is indeed possible to retrieve changes since the last build by iterating currentBuild.changeSets. But I'm actually looking for a way to visualize any / the changes since the last build in a Job View. I would like to indicate in the job that new changes are

Re: Indicate changes since last build

2018-09-06 Thread Craig Rodrigues
If you look at the currentBuild variable ( https://ci.jenkins.io/pipeline-syntax/globals#currentBuild ), it has a few things you can use: - previousBuild - changeSets You can try playing around with those, and see if you can get the changesets for the current build, and the previous build. curren

Indicate changes since last build

2018-09-06 Thread Wouter Slob
Hi, I've got several pipeline and for each pipeline I would like to indicate in the view if the last not failed build was on the latest changes. In other words: I would like to indicate per pipeline if there are changes not yet build. I've did a lot of searching, but could only find references