1 package org.apache.continuum.buildagent.buildcontext;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 import java.util.Date;
23 import java.util.Map;
24
25 import org.apache.maven.continuum.model.project.BuildResult;
26 import org.apache.maven.continuum.model.scm.ScmResult;
27
28 public class BuildContext
29 {
30 private int projectId;
31
32 private String projectName;
33
34 private String projectVersion;
35
36 private int projectState;
37
38 private int buildNumber;
39
40 private int buildDefinitionId;
41
42 private String buildDefinitionLabel;
43
44 private String buildFile;
45
46 private String goals;
47
48 private String arguments;
49
50 private String executorId;
51
52 private String scmUrl;
53
54 private String scmUsername;
55
56 private String scmPassword;
57
58 private String scmTag;
59
60 private int trigger;
61
62 private boolean buildFresh;
63
64 private int projectGroupId;
65
66 private String projectGroupName;
67
68 private String scmRootAddress;
69
70 private int scmRootId;
71
72 private Map<String, Object> actionContext;
73
74 private ScmResult scmResult;
75
76 private BuildResult buildResult;
77
78 private long buildStartTime;
79
80 private String localRepository;
81
82 private ScmResult oldScmResult;
83
84 private Date latestUpdateDate;
85
86 private String buildAgentUrl;
87
88 private int maxExecutionTime;
89
90 public int getProjectGroupId()
91 {
92 return projectGroupId;
93 }
94
95 public void setProjectGroupId( int projectGroupId )
96 {
97 this.projectGroupId = projectGroupId;
98 }
99
100 public String getScmRootAddress()
101 {
102 return scmRootAddress;
103 }
104
105 public void setScmRootAddress( String scmRootAddress )
106 {
107 this.scmRootAddress = scmRootAddress;
108 }
109
110 public int getProjectId()
111 {
112 return projectId;
113 }
114
115 public void setProjectId( int projectId )
116 {
117 this.projectId = projectId;
118 }
119
120 public String getProjectName()
121 {
122 return projectName;
123 }
124
125 public void setProjectName( String projectName )
126 {
127 this.projectName = projectName;
128 }
129
130 public int getProjectState()
131 {
132 return projectState;
133 }
134
135 public void setProjectState( int projectState )
136 {
137 this.projectState = projectState;
138 }
139
140 public int getBuildDefinitionId()
141 {
142 return buildDefinitionId;
143 }
144
145 public void setBuildDefinitionId( int buildDefinitionId )
146 {
147 this.buildDefinitionId = buildDefinitionId;
148 }
149
150 public String getBuildFile()
151 {
152 return buildFile;
153 }
154
155 public void setBuildFile( String buildFile )
156 {
157 this.buildFile = buildFile;
158 }
159
160 public String getGoals()
161 {
162 return goals;
163 }
164
165 public void setGoals( String goals )
166 {
167 this.goals = goals;
168 }
169
170 public String getArguments()
171 {
172 return arguments;
173 }
174
175 public void setArguments( String arguments )
176 {
177 this.arguments = arguments;
178 }
179
180 public String getExecutorId()
181 {
182 return executorId;
183 }
184
185 public void setExecutorId( String executorId )
186 {
187 this.executorId = executorId;
188 }
189
190 public String getScmUrl()
191 {
192 return scmUrl;
193 }
194
195 public void setScmUrl( String scmUrl )
196 {
197 this.scmUrl = scmUrl;
198 }
199
200 public String getScmUsername()
201 {
202 return scmUsername;
203 }
204
205 public void setScmUsername( String scmUsername )
206 {
207 this.scmUsername = scmUsername;
208 }
209
210 public String getScmPassword()
211 {
212 return scmPassword;
213 }
214
215 public void setScmPassword( String scmPassword )
216 {
217 this.scmPassword = scmPassword;
218 }
219
220 public String getScmTag()
221 {
222 return scmTag;
223 }
224
225 public void setScmTag( String scmTag )
226 {
227 this.scmTag = scmTag;
228 }
229
230 public int getTrigger()
231 {
232 return trigger;
233 }
234
235 public void setTrigger( int trigger )
236 {
237 this.trigger = trigger;
238 }
239
240 public boolean isBuildFresh()
241 {
242 return buildFresh;
243 }
244
245 public void setBuildFresh( boolean buildFresh )
246 {
247 this.buildFresh = buildFresh;
248 }
249
250 public Map<String, Object> getActionContext()
251 {
252 return actionContext;
253 }
254
255 public void setActionContext( Map<String, Object> actionContext )
256 {
257 this.actionContext = actionContext;
258 }
259
260 public ScmResult getScmResult()
261 {
262 return scmResult;
263 }
264
265 public void setScmResult( ScmResult scmResult )
266 {
267 this.scmResult = scmResult;
268 }
269
270 public BuildResult getBuildResult()
271 {
272 return buildResult;
273 }
274
275 public void setBuildResult( BuildResult buildResult )
276 {
277 this.buildResult = buildResult;
278 }
279
280 public long getBuildStartTime()
281 {
282 return buildStartTime;
283 }
284
285 public void setBuildStartTime( long buildStartTime )
286 {
287 this.buildStartTime = buildStartTime;
288 }
289
290 public String getLocalRepository()
291 {
292 return localRepository;
293 }
294
295 public void setLocalRepository( String localRepository )
296 {
297 this.localRepository = localRepository;
298 }
299
300 public void setProjectGroupName( String projectGroupName )
301 {
302 this.projectGroupName = projectGroupName;
303 }
304
305 public String getProjectGroupName()
306 {
307 return projectGroupName;
308 }
309
310 public void setProjectVersion( String projectVersion )
311 {
312 this.projectVersion = projectVersion;
313 }
314
315 public String getProjectVersion()
316 {
317 return projectVersion;
318 }
319
320 public void setBuildNumber( int buildNumber )
321 {
322 this.buildNumber = buildNumber;
323 }
324
325 public int getBuildNumber()
326 {
327 return buildNumber;
328 }
329
330 public void setOldScmResult( ScmResult oldScmResult )
331 {
332 this.oldScmResult = oldScmResult;
333 }
334
335 public ScmResult getOldScmResult()
336 {
337 return oldScmResult;
338 }
339
340 public void setLatestUpdateDate( Date latestUpdateDate )
341 {
342 this.latestUpdateDate = latestUpdateDate;
343 }
344
345 public Date getLatestUpdateDate()
346 {
347 return latestUpdateDate;
348 }
349
350 public void setBuildAgentUrl( String buildAgentUrl )
351 {
352 this.buildAgentUrl = buildAgentUrl;
353 }
354
355 public String getBuildAgentUrl()
356 {
357 return buildAgentUrl;
358 }
359
360 public void setMaxExecutionTime( int maxExecutionTime )
361 {
362 this.maxExecutionTime = maxExecutionTime;
363 }
364
365 public int getMaxExecutionTime()
366 {
367 return maxExecutionTime;
368 }
369
370 public void setScmRootId( int scmRootId )
371 {
372 this.scmRootId = scmRootId;
373 }
374
375 public int getScmRootId()
376 {
377 return scmRootId;
378 }
379
380 public void setBuildDefinitionLabel( String buildDefinitionLabel )
381 {
382 this.buildDefinitionLabel = buildDefinitionLabel;
383 }
384
385 public String getBuildDefinitionLabel()
386 {
387 return buildDefinitionLabel;
388 }
389 }