1 package org.kuali.maven.mojo;
2
3 import java.util.List;
4
5 import org.apache.maven.plugin.MojoExecutionException;
6 import org.kuali.maven.common.PropertiesUtils;
7 import org.kuali.maven.mojo.context.MojoContext;
8
9
10
11
12
13
14
15 public class UpdateJobsMojo extends AbstractJobConfigMojo {
16
17
18
19
20
21
22
23 private String cmd;
24
25
26
27
28
29
30
31 private String types;
32
33 @Override
34 public void execute() throws MojoExecutionException {
35 setStopOnError(false);
36 String[] tokens = PropertiesUtils.splitAndTrim(types, ",");
37 List<MojoContext> contexts = helper.pushJobsToJenkins(this, tokens);
38 helper.handleResults(contexts);
39 }
40
41 public String getCmd() {
42 return cmd;
43 }
44
45 public void setCmd(String cmd) {
46 this.cmd = cmd;
47 }
48
49 public String getTypes() {
50 return types;
51 }
52
53 public void setTypes(String types) {
54 this.types = types;
55 }
56
57 }