public class CascadeLogic extends Object
Modifier and Type | Method and Description |
---|---|
static MemberBuildCause |
cascadeCause(BuildContext<CascadeBuild> context)
Cascade build cause.
|
static boolean |
hasCascadeCause(BuildContext<CascadeBuild> context)
Verify presence of a build cause.
|
static boolean |
hasModuleResult(BuildContext<CascadeBuild> context,
hudson.maven.ModuleName moduleName)
Verify if module was already included in the results.
|
static boolean |
hasReleaseAction(hudson.model.Actionable item)
Verify presence of a release badge.
|
static void |
logActions(BuildContext<CascadeBuild> context,
List<hudson.model.Action> actionList)
Show build actions in the log.
|
static void |
logDependency(BuildContext<CascadeBuild> context,
List<org.apache.maven.model.Dependency> dependencyList)
Show project dependencies in the log.
|
static void |
logResult(BuildContext<CascadeBuild> context) |
static List<hudson.model.Action> |
mavenCommitGoals(BuildContext<CascadeBuild> context,
String... options)
Commit pom.xml to SCM.
|
static String |
mavenDependencyFilter(List<org.apache.maven.model.Dependency> list)
Update selected dependency only.
|
static List<hudson.model.Action> |
mavenDependencyGoals(BuildContext<CascadeBuild> context,
String... options)
Update dependency version in pom.xml.
|
static String |
mavenParentFilter(org.apache.maven.model.Parent item)
Update parent version with lower bound of current snapshot.
|
static List<hudson.model.Action> |
mavenParentGoals(BuildContext<CascadeBuild> context,
String... options)
Update parent version in pom.xml.
|
static List<hudson.model.Action> |
mavenReleaseGoals(BuildContext<CascadeBuild> context,
String... options)
Release maven artifact.
|
static List<hudson.model.Action> |
mavenUpdateGoals(BuildContext<CascadeBuild> context,
String... options)
Update maven and jenkins metadata after release.
|
static List<hudson.model.Action> |
mavenValidateGoals(BuildContext<CascadeBuild> context,
String... options)
Update maven and jenkins metadata before release.
|
static hudson.maven.MavenModuleSet |
memberProject(BuildContext<CascadeBuild> context)
Find initial member project.
|
static hudson.maven.MavenModuleSet |
memberProject(BuildContext<CascadeBuild> context,
hudson.maven.ModuleName sourceName)
Find member project of a cascade by maven module name.
|
static String |
memberReleaseVersion(BuildContext<CascadeBuild> context)
Initial member release version.
|
static String |
memberSnapshotVersion(BuildContext<CascadeBuild> context)
Initial member development version.
|
static hudson.model.Result |
process(BuildContext<CascadeBuild> context)
Cascade entry point.
|
static hudson.model.Result |
processEntry(int level,
BuildContext<CascadeBuild> context,
hudson.maven.ModuleName moduleName)
Recursively release projects.
|
static hudson.model.Result |
processMaven(BuildContext<CascadeBuild> context,
hudson.maven.MavenModuleSet project,
List<hudson.model.Action> actionList,
boolean isBlocking)
Build maven module.
|
static void |
scmRead(int level,
BuildContext<CascadeBuild> context,
hudson.maven.MavenModuleSet project)
Perform optional update.
|
static void |
scmWrite(int level,
BuildContext<CascadeBuild> context,
hudson.maven.MavenModuleSet project)
Perform commit and optional check-in.
|
static void |
storeBuildResult(BuildContext<CascadeBuild> context,
hudson.maven.MavenModuleSetBuild build)
Store build result in the build context.
|
public static MemberBuildCause cascadeCause(BuildContext<CascadeBuild> context)
public static boolean hasCascadeCause(BuildContext<CascadeBuild> context)
public static boolean hasModuleResult(BuildContext<CascadeBuild> context, hudson.maven.ModuleName moduleName)
public static boolean hasReleaseAction(hudson.model.Actionable item)
public static void logActions(BuildContext<CascadeBuild> context, List<hudson.model.Action> actionList)
public static void logDependency(BuildContext<CascadeBuild> context, List<org.apache.maven.model.Dependency> dependencyList)
public static void logResult(BuildContext<CascadeBuild> context)
public static List<hudson.model.Action> mavenCommitGoals(BuildContext<CascadeBuild> context, String... options)
public static String mavenDependencyFilter(List<org.apache.maven.model.Dependency> list)
public static List<hudson.model.Action> mavenDependencyGoals(BuildContext<CascadeBuild> context, String... options)
public static String mavenParentFilter(org.apache.maven.model.Parent item)
public static List<hudson.model.Action> mavenParentGoals(BuildContext<CascadeBuild> context, String... options)
public static List<hudson.model.Action> mavenReleaseGoals(BuildContext<CascadeBuild> context, String... options)
public static List<hudson.model.Action> mavenUpdateGoals(BuildContext<CascadeBuild> context, String... options)
public static List<hudson.model.Action> mavenValidateGoals(BuildContext<CascadeBuild> context, String... options)
public static hudson.maven.MavenModuleSet memberProject(BuildContext<CascadeBuild> context)
public static hudson.maven.MavenModuleSet memberProject(BuildContext<CascadeBuild> context, hudson.maven.ModuleName sourceName)
public static String memberReleaseVersion(BuildContext<CascadeBuild> context)
public static String memberSnapshotVersion(BuildContext<CascadeBuild> context)
public static hudson.model.Result process(BuildContext<CascadeBuild> context) throws Exception
Exception
public static hudson.model.Result processEntry(int level, BuildContext<CascadeBuild> context, hudson.maven.ModuleName moduleName) throws Exception
Exception
public static hudson.model.Result processMaven(BuildContext<CascadeBuild> context, hudson.maven.MavenModuleSet project, List<hudson.model.Action> actionList, boolean isBlocking) throws Exception
Exception
public static void scmRead(int level, BuildContext<CascadeBuild> context, hudson.maven.MavenModuleSet project) throws Exception
Exception
public static void scmWrite(int level, BuildContext<CascadeBuild> context, hudson.maven.MavenModuleSet project) throws Exception
Exception
public static void storeBuildResult(BuildContext<CascadeBuild> context, hudson.maven.MavenModuleSetBuild build) throws Exception
Exception
Copyright © 2004-2013 Barchart, Inc.. All Rights Reserved.