Class UpstreamBuildUtil


  • public class UpstreamBuildUtil
    extends Object
    Author:
    dalvizu
    • Constructor Detail

      • UpstreamBuildUtil

        public UpstreamBuildUtil()
    • Method Detail

      • getUpstreamBuild

        public static AbstractBuild getUpstreamBuild​(AbstractBuild<?,​?> build)
        Get the root upstream build which caused this build. Useful in build pipelines to be able to extract the changes which started the pipeline in later stages of the pipeline
        Returns:
      • hasUpstreamBuild

        public static boolean hasUpstreamBuild​(Run run)