org.kuali.maven.mojo
Class JenkinsHelper
java.lang.Object
   org.kuali.maven.mojo.JenkinsHelper
org.kuali.maven.mojo.JenkinsHelper
- public class JenkinsHelper 
- extends Object
 
 
| Method Summary | 
| protected  void | createArgs(String[] args,
                     org.apache.tools.ant.taskdefs.Java task)
 | 
|  List<MojoContext> | deleteJobs(org.apache.maven.plugin.Mojo mojo,
                     List<String> names,
                     String[] types)
 | 
|  MojoContext | executeCliCommand(org.apache.maven.plugin.Mojo mojo)
 | 
|  MojoContext | executeCliJobCommand(org.apache.maven.plugin.Mojo mojo,
                                         String name,
                                         String type)
 | 
|  MojoContext | generate(org.apache.maven.plugin.Mojo mojo,
                 String type)
 | 
|  List<MojoContext> | generate(org.apache.maven.plugin.Mojo mojo,
                 String[] types)
 | 
|  MojoContext | generate(org.apache.maven.plugin.Mojo mojo,
                 String type,
                 boolean logFilename)
 | 
| protected  AntContext | getAntContext(MojoContext mojoContext)
 | 
|  org.apache.tools.ant.Project | getAntProject()
 | 
| protected  String[] | getArgs(String... args)
 | 
| protected  CliContext | getCliContext(JobContext jobContext,
                           org.apache.maven.plugin.Mojo mojo)
 | 
| protected  CliContext | getCliContext(org.apache.maven.plugin.Mojo mojo)
 | 
| protected 
 | getContext(Class<T> type,
                     org.apache.maven.plugin.Mojo mojo)
 | 
| protected  String | getFilename(MavenContext mvnContext,
                       JobContext jobContext,
                       String jobName)
 | 
| protected  org.apache.tools.ant.taskdefs.Java | getJavaTask(AntContext context)
 | 
| protected  Properties | getJenkinsProperties(MavenContext mvnContext,
                                         JobContext jobContext)
 | 
|  MojoContext | getJob(org.apache.maven.plugin.Mojo mojo,
             String name,
             String type)
 | 
| protected  JobContext | getJobContext(MavenContext mvnContext,
                           org.apache.maven.plugin.Mojo mojo,
                           String name,
                           String type)
 | 
| protected  String | getJobName(MavenContext mvnContext,
                     String name,
                     String type)
 | 
|  List<MojoContext> | getJobs(org.apache.maven.plugin.Mojo mojo,
               List<String> names,
               String[] types)
 | 
| protected  List<String> | getLocations(MavenContext mvnContext,
                         JobContext jobContext)
 | 
| protected  MavenContext | getMavenContext(org.apache.maven.plugin.Mojo mojo)
 | 
| protected  MojoContext | getMojoContext(MavenContext mvnContext,
                             JobContext jobContext,
                             CliContext cliContext)
 | 
| protected  org.apache.tools.ant.types.Path | getPluginClasspath(org.apache.tools.ant.Project antProject,
                                     MavenContext mvnContext)
 | 
| protected  Properties | getProperties(MavenContext mvnContext,
                           JobContext jobContext)
 | 
| protected  ResultContext | getResultContext(int result,
                                 File resultFile)
 | 
| protected  ResultContext | handleResult(MojoContext context,
                         int result,
                         File resultFile)
 | 
|  void | handleResults(List<MojoContext> contexts)
 | 
|  void | handleResults(List<MojoContext> contexts,
                           List<Integer> ignoreCodes)
 | 
| protected  boolean | isEmpty(Collection<?> c)
 | 
| protected  boolean | isIgnore(int result,
                 List<Integer> ignoreCodes)
 | 
|  List<MojoContext> | pushJobsToJenkins(org.apache.maven.plugin.Mojo mojo,
                                   String[] types)
 | 
|  MojoContext | pushJobToJenkins(org.apache.maven.plugin.Mojo mojo,
                                 String type)
 | 
| protected  List<String> | readLines(File file)
 | 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
JAVA_RESULT_PROPERTY
public static final String JAVA_RESULT_PROPERTY
- See Also:
- Constant Field Values
JenkinsHelper
public JenkinsHelper()
getContext
protected <T> T getContext(Class<T> type,
                           org.apache.maven.plugin.Mojo mojo)
- 
 
getMojoContext
protected MojoContext getMojoContext(MavenContext mvnContext,
                                     JobContext jobContext,
                                     CliContext cliContext)
- 
 
getJob
public MojoContext getJob(org.apache.maven.plugin.Mojo mojo,
                          String name,
                          String type)
                   throws org.apache.maven.plugin.MojoExecutionException
- 
- Throws:
- org.apache.maven.plugin.MojoExecutionException
 
isEmpty
protected boolean isEmpty(Collection<?> c)
- 
 
isIgnore
protected boolean isIgnore(int result,
                           List<Integer> ignoreCodes)
- 
 
handleResults
public void handleResults(List<MojoContext> contexts,
                          List<Integer> ignoreCodes)
                   throws org.apache.maven.plugin.MojoExecutionException
- 
- Throws:
- org.apache.maven.plugin.MojoExecutionException
 
handleResults
public void handleResults(List<MojoContext> contexts)
                   throws org.apache.maven.plugin.MojoExecutionException
- 
- Throws:
- org.apache.maven.plugin.MojoExecutionException
 
getJobs
public List<MojoContext> getJobs(org.apache.maven.plugin.Mojo mojo,
                                 List<String> names,
                                 String[] types)
                          throws org.apache.maven.plugin.MojoExecutionException
- 
- Throws:
- org.apache.maven.plugin.MojoExecutionException
 
getArgs
protected String[] getArgs(String... args)
- 
 
getResultContext
protected ResultContext getResultContext(int result,
                                         File resultFile)
- 
 
handleResult
protected ResultContext handleResult(MojoContext context,
                                     int result,
                                     File resultFile)
                              throws org.apache.maven.plugin.MojoExecutionException
- 
- Throws:
- org.apache.maven.plugin.MojoExecutionException
 
readLines
protected List<String> readLines(File file)
                          throws IOException
- 
- Throws:
- IOException
 
getPluginClasspath
protected org.apache.tools.ant.types.Path getPluginClasspath(org.apache.tools.ant.Project antProject,
                                                             MavenContext mvnContext)
                                                      throws org.apache.maven.plugin.MojoExecutionException
- 
- Throws:
- org.apache.maven.plugin.MojoExecutionException
 
getAntContext
protected AntContext getAntContext(MojoContext mojoContext)
                            throws org.apache.maven.plugin.MojoExecutionException
- 
- Throws:
- org.apache.maven.plugin.MojoExecutionException
 
getJavaTask
protected org.apache.tools.ant.taskdefs.Java getJavaTask(AntContext context)
- 
 
createArgs
protected void createArgs(String[] args,
                          org.apache.tools.ant.taskdefs.Java task)
- 
 
getAntProject
public org.apache.tools.ant.Project getAntProject()
- 
 
pushJobsToJenkins
public List<MojoContext> pushJobsToJenkins(org.apache.maven.plugin.Mojo mojo,
                                           String[] types)
                                    throws org.apache.maven.plugin.MojoExecutionException
- 
- Throws:
- org.apache.maven.plugin.MojoExecutionException
 
pushJobToJenkins
public MojoContext pushJobToJenkins(org.apache.maven.plugin.Mojo mojo,
                                    String type)
                             throws org.apache.maven.plugin.MojoExecutionException
- 
- Throws:
- org.apache.maven.plugin.MojoExecutionException
 
deleteJobs
public List<MojoContext> deleteJobs(org.apache.maven.plugin.Mojo mojo,
                                    List<String> names,
                                    String[] types)
                             throws org.apache.maven.plugin.MojoExecutionException
- 
- Throws:
- org.apache.maven.plugin.MojoExecutionException
 
executeCliCommand
public MojoContext executeCliCommand(org.apache.maven.plugin.Mojo mojo)
                              throws org.apache.maven.plugin.MojoExecutionException
- 
- Throws:
- org.apache.maven.plugin.MojoExecutionException
 
executeCliJobCommand
public MojoContext executeCliJobCommand(org.apache.maven.plugin.Mojo mojo,
                                        String name,
                                        String type)
                                 throws org.apache.maven.plugin.MojoExecutionException
- 
- Throws:
- org.apache.maven.plugin.MojoExecutionException
 
generate
public MojoContext generate(org.apache.maven.plugin.Mojo mojo,
                            String type,
                            boolean logFilename)
                     throws org.apache.maven.plugin.MojoExecutionException
- 
- Throws:
- org.apache.maven.plugin.MojoExecutionException
 
generate
public MojoContext generate(org.apache.maven.plugin.Mojo mojo,
                            String type)
                     throws org.apache.maven.plugin.MojoExecutionException
- 
- Throws:
- org.apache.maven.plugin.MojoExecutionException
 
generate
public List<MojoContext> generate(org.apache.maven.plugin.Mojo mojo,
                                  String[] types)
                           throws org.apache.maven.plugin.MojoExecutionException
- 
- Throws:
- org.apache.maven.plugin.MojoExecutionException
 
getJobContext
protected JobContext getJobContext(MavenContext mvnContext,
                                   org.apache.maven.plugin.Mojo mojo,
                                   String name,
                                   String type)
- 
 
getCliContext
protected CliContext getCliContext(org.apache.maven.plugin.Mojo mojo)
- 
 
getCliContext
protected CliContext getCliContext(JobContext jobContext,
                                   org.apache.maven.plugin.Mojo mojo)
- 
 
getMavenContext
protected MavenContext getMavenContext(org.apache.maven.plugin.Mojo mojo)
- 
 
getFilename
protected String getFilename(MavenContext mvnContext,
                             JobContext jobContext,
                             String jobName)
- 
 
getJobName
protected String getJobName(MavenContext mvnContext,
                            String name,
                            String type)
- 
 
getProperties
protected Properties getProperties(MavenContext mvnContext,
                                   JobContext jobContext)
                            throws IOException
- 
- Throws:
- IOException
 
getJenkinsProperties
protected Properties getJenkinsProperties(MavenContext mvnContext,
                                          JobContext jobContext)
- 
 
getLocations
protected List<String> getLocations(MavenContext mvnContext,
                                    JobContext jobContext)
- 
 
Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.