public class LayoutLogic extends Object implements PluginConstants
CASCADE_PROJECT_ICON, CASCADE_PROJECT_NAME, CASCADE_PROJECT_PRONOUN, LAYOUT_ACTION_ICON, LAYOUT_ACTION_NAME, LAYOUT_ACTION_URL, LOGGER_PREFIX, MEMBER_ACTION_ICON, MEMBER_ACTION_NAME, MEMBER_ACTION_URL, MEMBER_GRAPH_NAME, MEMBER_VIEW_ICON, MEMBER_VIEW_NAME, MEMBER_VIEW_URL, PLUGIN_HELP, PLUGIN_ICON, PLUGIN_ID, PLUGIN_IMAGES, PLUGIN_IMAGES_16, PLUGIN_IMAGES_24, PLUGIN_IMAGES_32, PLUGIN_IMAGES_48, PLUGIN_NAME, PLUGIN_URL
Modifier and Type | Method and Description |
---|---|
static String |
cascadeName(BuildContext<hudson.maven.MavenModuleSetBuild> context,
hudson.maven.MavenModuleSet layoutProject)
Generate cascade project name.
|
static boolean |
checkModuleNesting(BuildContext<hudson.maven.MavenModuleSetBuild> context,
hudson.maven.MavenModuleSet layoutProject)
Verify plug-in maven module nesting convention:
|
static void |
cloneConfig(hudson.maven.MavenModuleSet layoutProject,
hudson.maven.MavenModuleSet memberProject)
Copy configuration from layout into member via XML, run post load hook.
|
static void |
ensureProjectView(BuildContext<hudson.maven.MavenModuleSetBuild> context,
hudson.model.TopLevelItem project)
Create view if missing and add project to the view.
|
static void |
ensureProjectViewColumns(hudson.model.ListView view)
Activate additional columns for the cascade view.
|
static List<hudson.model.Action> |
mavenValidateGoals(BuildContext<hudson.maven.MavenModuleSetBuild> context,
String... options)
Update maven and jenkins metadata.
|
static String |
memberName(BuildContext<hudson.maven.MavenModuleSetBuild> context,
hudson.maven.MavenModuleSet layoutProject,
hudson.maven.MavenModule module)
Generate member project name.
|
static boolean |
process(BuildContext<hudson.maven.MavenModuleSetBuild> context)
Layout build entry point.
|
static void |
processCascade(BuildContext<hudson.maven.MavenModuleSetBuild> context,
hudson.maven.MavenModuleSet layoutProject,
LayoutArgumentsAction action)
Process cascade project create/update/delete.
|
static void |
processLayout(BuildContext<hudson.maven.MavenModuleSetBuild> context,
hudson.maven.MavenModuleSet layoutProject)
Process layout project settings.
|
static boolean |
processMemberList(BuildContext<hudson.maven.MavenModuleSetBuild> context,
hudson.maven.MavenModuleSet layoutProject,
LayoutArgumentsAction action)
Process member project list create/update/delete.
|
static boolean |
processMemberListCreate(BuildContext<hudson.maven.MavenModuleSetBuild> context,
hudson.maven.MavenModuleSet layoutProject)
Create member list using name as distinction.
|
static boolean |
processMemberListDelete(BuildContext<hudson.maven.MavenModuleSetBuild> context,
hudson.maven.MavenModuleSet layoutProject)
Delete member list using identity as distinction.
|
static boolean |
processMemberListUpdate(BuildContext<hudson.maven.MavenModuleSetBuild> context,
hudson.maven.MavenModuleSet layoutProject)
Update member list using identity as distinction.
|
static void |
processMemberUpdate(BuildContext<hudson.maven.MavenModuleSetBuild> context,
hudson.maven.MavenModule memberModule,
hudson.maven.MavenModuleSet memberProject,
hudson.maven.MavenModuleSet layoutProject)
Update configuration of existing member project based on the layout
project, with member specifics.
|
static void |
processMemberValidate(BuildContext<hudson.maven.MavenModuleSetBuild> context,
hudson.maven.MavenModuleSet project)
Validate newly created member projects.
|
public static String cascadeName(BuildContext<hudson.maven.MavenModuleSetBuild> context, hudson.maven.MavenModuleSet layoutProject) throws IOException
IOException
public static boolean checkModuleNesting(BuildContext<hudson.maven.MavenModuleSetBuild> context, hudson.maven.MavenModuleSet layoutProject) throws IOException
1) Layout project must have modules.
2) Do not permit modules for member projects.
IOException
public static void cloneConfig(hudson.maven.MavenModuleSet layoutProject, hudson.maven.MavenModuleSet memberProject) throws IOException
IOException
public static void ensureProjectView(BuildContext<hudson.maven.MavenModuleSetBuild> context, hudson.model.TopLevelItem project) throws IOException
IOException
public static void ensureProjectViewColumns(hudson.model.ListView view) throws IOException
IOException
public static List<hudson.model.Action> mavenValidateGoals(BuildContext<hudson.maven.MavenModuleSetBuild> context, String... options)
public static String memberName(BuildContext<hudson.maven.MavenModuleSetBuild> context, hudson.maven.MavenModuleSet layoutProject, hudson.maven.MavenModule module) throws IOException
IOException
public static boolean process(BuildContext<hudson.maven.MavenModuleSetBuild> context) throws IOException
IOException
public static void processCascade(BuildContext<hudson.maven.MavenModuleSetBuild> context, hudson.maven.MavenModuleSet layoutProject, LayoutArgumentsAction action) throws IOException
IOException
public static void processLayout(BuildContext<hudson.maven.MavenModuleSetBuild> context, hudson.maven.MavenModuleSet layoutProject) throws IOException
IOException
public static boolean processMemberList(BuildContext<hudson.maven.MavenModuleSetBuild> context, hudson.maven.MavenModuleSet layoutProject, LayoutArgumentsAction action) throws IOException
IOException
public static boolean processMemberListCreate(BuildContext<hudson.maven.MavenModuleSetBuild> context, hudson.maven.MavenModuleSet layoutProject) throws IOException
IOException
public static boolean processMemberListDelete(BuildContext<hudson.maven.MavenModuleSetBuild> context, hudson.maven.MavenModuleSet layoutProject) throws IOException
IOException
public static boolean processMemberListUpdate(BuildContext<hudson.maven.MavenModuleSetBuild> context, hudson.maven.MavenModuleSet layoutProject) throws IOException
IOException
public static void processMemberUpdate(BuildContext<hudson.maven.MavenModuleSetBuild> context, hudson.maven.MavenModule memberModule, hudson.maven.MavenModuleSet memberProject, hudson.maven.MavenModuleSet layoutProject) throws IOException
IOException
public static void processMemberValidate(BuildContext<hudson.maven.MavenModuleSetBuild> context, hudson.maven.MavenModuleSet project)
Build maven module, do not wait for completion.
Copyright © 2004-2013 Barchart, Inc.. All Rights Reserved.