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.

currentBuild is of type RunWrapper, and you can see the full documentation
for those methods here:

https://javadoc.jenkins.io/plugin/workflow-support/org/jenkinsci/plugins/workflow/support/steps/build/RunWrapper.html

If you get something to work, please post a code snippet.
--
Craig

On Thu, Sep 6, 2018 at 6:43 AM Wouter Slob <[email protected]> wrote:

> 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 to the
> "Changes Since Last Success Plugin", which does not support pipeline (and
> is quite out-dated).
>
> Does anybody know of an alternative?
>
> Thnx!
> Wouter
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/eec2945c-025c-488a-8d29-22a4862dbd96%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-users/eec2945c-025c-488a-8d29-22a4862dbd96%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAG%3DrPVcXD0xSX0PTZbeBcz3P_uzo3NUM26GKhq9EP-kM8hi2RA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to