1 package org.apache.continuum.buildagent.manager;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 import java.util.Map;
23
24 import org.apache.maven.continuum.release.ContinuumReleaseException;
25 import org.apache.maven.shared.release.ReleaseResult;
26
27 public interface BuildAgentReleaseManager
28 {
29 String ROLE = BuildAgentReleaseManager.class.getName();
30
31 String releasePrepare( Map<String, Object> project, Map<String, Object> properties,
32 Map<String, String> releaseVersion, Map<String, String> developmentVersion,
33 Map<String, String> environments )
34 throws ContinuumReleaseException;
35
36 ReleaseResult getReleaseResult( String releaseId );
37
38 Map<String, Object> getListener( String releaseId );
39
40 void removeListener( String releaseId );
41
42 String getPreparedReleaseName( String releaseId );
43
44 void releasePerform( String releaseId, String goals, String arguments, boolean useReleaseProfile, Map repository )
45 throws ContinuumReleaseException;
46
47 String releasePerformFromScm( String goals, String arguments, boolean useReleaseProfile, Map repository,
48 String scmUrl, String scmUsername, String scmPassword, String scmTag,
49 String scmTagBase, Map<String, String> environments )
50 throws ContinuumReleaseException;
51
52 String releaseCleanup( String releaseId );
53
54 void releaseRollback( String releaseId, int projectId )
55 throws ContinuumReleaseException;
56 }