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