1 package org.apache.continuum.release.distributed.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.List;
23 import java.util.Map;
24 import java.util.Properties;
25
26 import org.apache.continuum.configuration.BuildAgentConfigurationException;
27 import org.apache.continuum.model.repository.LocalRepository;
28 import org.apache.maven.continuum.model.project.Project;
29 import org.apache.maven.continuum.release.ContinuumReleaseException;
30 import org.apache.maven.shared.release.ReleaseResult;
31
32 public interface DistributedReleaseManager
33 {
34 Map getReleasePluginParameters( int projectId, String pomFilename )
35 throws ContinuumReleaseException, BuildAgentConfigurationException;
36
37 List<Map<String, String>> processProject( int projectId, String pomFilename, boolean autoVersionSubmodules )
38 throws ContinuumReleaseException, BuildAgentConfigurationException;
39
40 String releasePrepare( Project project, Properties releaseProperties, Map<String, String> releaseVersion,
41 Map<String, String> developmentVersion, Map<String, String> environments )
42 throws ContinuumReleaseException, BuildAgentConfigurationException;
43
44 ReleaseResult getReleaseResult( String releaseId )
45 throws ContinuumReleaseException, BuildAgentConfigurationException;
46
47 Map getListener( String releaseId )
48 throws ContinuumReleaseException, BuildAgentConfigurationException;
49
50 void removeListener( String releaseId )
51 throws ContinuumReleaseException, BuildAgentConfigurationException;
52
53 String getPreparedReleaseName( String releaseId )
54 throws ContinuumReleaseException;
55
56 void releasePerform( int projectId, String releaseId, String goals, String arguments, boolean useReleaseProfile, LocalRepository repository )
57 throws ContinuumReleaseException, BuildAgentConfigurationException;
58
59 void releasePerformFromScm( int projectId, String goals, String arguments, boolean useReleaseProfile, LocalRepository repository,
60 String scmUrl, String scmUsername, String scmPassword, String scmTag, String scmTagBase, Map environments )
61 throws ContinuumReleaseException, BuildAgentConfigurationException;
62
63 void releaseRollback( String releaseId, int projectId )
64 throws ContinuumReleaseException, BuildAgentConfigurationException;
65
66 String releaseCleanup( String releaseId )
67 throws ContinuumReleaseException, BuildAgentConfigurationException;
68
69 List<Map<String, Object>> getAllReleasesInProgress()
70 throws ContinuumReleaseException, BuildAgentConfigurationException;
71 }