1 package org.apache.continuum.distributed.transport.slave;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 import com.atlassian.xmlrpc.ServiceObject;
23
24 import java.util.List;
25 import java.util.Map;
26
27
28
29
30 @ServiceObject("SlaveBuildAgentTransportService")
31 public interface SlaveBuildAgentTransportService
32 {
33 public Boolean buildProjects( List<Map<String, Object>> projectsBuildContext )
34 throws Exception;
35
36 public Map<String, Object> getBuildResult( int projectId )
37 throws Exception;
38
39 public Map<String, Object> getProjectCurrentlyBuilding()
40 throws Exception;
41
42 public List<Map<String, String>> getAvailableInstallations()
43 throws Exception;
44
45 public Boolean ping()
46 throws Exception;
47
48 public Boolean cancelBuild()
49 throws Exception;
50
51 public String generateWorkingCopyContent( int projectId, String directory, String baseUrl, String imagesBaseUrl )
52 throws Exception;
53
54 public String getProjectFileContent( int projectId, String directory, String filename )
55 throws Exception;
56
57 public Map getReleasePluginParameters( int projectId, String pomFilename )
58 throws Exception;
59
60 public List<Map<String, String>> processProject( int projectId, String pomFilename, boolean autoVersionSubmodules )
61 throws Exception;
62
63 public String releasePrepare( Map project, Map properties, Map releaseVersion, Map developmentVersion,
64 Map environments )
65 throws Exception;
66
67 public Map<String, Object> getReleaseResult( String releaseId )
68 throws Exception;
69
70 public Map getListener( String releaseId )
71 throws Exception;
72
73 public Boolean removeListener( String releaseId )
74 throws Exception;
75
76 public String getPreparedReleaseName( String releaseId )
77 throws Exception;
78
79 public Boolean releasePerform( String releaseId, String goals, String arguments, boolean useReleaseProfile,
80 Map repository )
81 throws Exception;
82
83 public String releasePerformFromScm( String goals, String arguments, boolean useReleaseProfile, Map repository,
84 String scmUrl, String scmUsername, String scmPassword, String scmTag,
85 String scmTagBase, Map environments )
86 throws Exception;
87
88 public String releaseCleanup( String releaseId )
89 throws Exception;
90
91 public Boolean releaseRollback( String releaseId, int projectId )
92 throws Exception;
93
94 public Integer getBuildSizeOfAgent()
95 throws Exception;
96
97 public List<Map<String, Object>> getProjectsInPrepareBuildQueue()
98 throws Exception;
99
100 public List<Map<String, Object>> getProjectsInBuildQueue()
101 throws Exception;
102
103 public Map<String, Object> getProjectCurrentlyPreparingBuild()
104 throws Exception;
105
106 public Boolean isProjectGroupInQueue( int projectGroupId )
107 throws Exception;
108
109 public Boolean isProjectCurrentlyBuilding( int projectId )
110 throws Exception;
111
112 public Boolean isProjectInBuildQueue( int projectId )
113 throws Exception;
114
115 public Boolean removeFromPrepareBuildQueue( int projectGroupId, int scmRootId )
116 throws Exception;
117
118 public Boolean removeFromPrepareBuildQueue( List<String> hashCodes )
119 throws Exception;
120
121 public Boolean removeFromBuildQueue( int projectId, int buildDefinitionId )
122 throws Exception;
123
124 public Boolean removeFromBuildQueue( List<String> hashCodes )
125 throws Exception;
126 }