View Javadoc

1   package org.apache.continuum.buildagent.manager;
2   
3   /*
4    * Licensed to the Apache Software Foundation (ASF) under one
5    * or more contributor license agreements.  See the NOTICE file
6    * distributed with this work for additional information
7    * regarding copyright ownership.  The ASF licenses this file
8    * to you under the Apache License, Version 2.0 (the
9    * "License"); you may not use this file except in compliance
10   * with the License.  You may obtain a copy of the License at
11   *
12   *   http://www.apache.org/licenses/LICENSE-2.0
13   *
14   * Unless required by applicable law or agreed to in writing,
15   * software distributed under the License is distributed on an
16   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17   * KIND, either express or implied.  See the License for the
18   * specific language governing permissions and limitations
19   * under the License.
20   */
21  
22  import org.apache.maven.continuum.release.ContinuumReleaseException;
23  import org.apache.maven.continuum.release.ContinuumReleaseManager;
24  import org.apache.maven.shared.release.ReleaseResult;
25  
26  import java.util.Map;
27  import java.util.Properties;
28  
29  public interface BuildAgentReleaseManager
30  {
31      String ROLE = BuildAgentReleaseManager.class.getName();
32  
33      String releasePrepare( Map<String, Object> project, Properties properties, Map<String, String> releaseVersion,
34                             Map<String, String> developmentVersion, Map<String, String> environments, String username )
35          throws ContinuumReleaseException;
36  
37      ReleaseResult getReleaseResult( String releaseId );
38  
39      Map<String, Object> getListener( String releaseId );
40  
41      void removeListener( String releaseId );
42  
43      String getPreparedReleaseName( String releaseId );
44  
45      void releasePerform( String releaseId, String goals, String arguments, boolean useReleaseProfile, Map repository,
46                           String username )
47          throws ContinuumReleaseException;
48  
49      String releasePerformFromScm( String goals, String arguments, boolean useReleaseProfile, Map repository,
50                                    String scmUrl, String scmUsername, String scmPassword, String scmTag,
51                                    String scmTagBase, Map<String, String> environments, String username )
52          throws ContinuumReleaseException;
53  
54      String releaseCleanup( String releaseId );
55  
56      void releaseRollback( String releaseId, int projectId )
57          throws ContinuumReleaseException;
58  
59      ContinuumReleaseManager getReleaseManager();
60  }