Package org.jenkinsci.plugins.jiraext
Class UpstreamBuildUtil
- java.lang.Object
-
- org.jenkinsci.plugins.jiraext.UpstreamBuildUtil
-
public class UpstreamBuildUtil extends Object
- Author:
- dalvizu
-
-
Constructor Summary
Constructors Constructor Description UpstreamBuildUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AbstractBuild
getUpstreamBuild(AbstractBuild<?,?> build)
Get the root upstream build which caused this build.static boolean
hasUpstreamBuild(Run run)
-
-
-
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)
-
-