Parent Directory | Revision Log | Patch
--- maven/continuum/trunk/continuum-core-it/continuum.py 2005/05/02 10:55:17 165618 +++ maven/continuum/trunk/continuum-core-it/continuum.py 2005/05/02 11:49:52 165619 @@ -48,23 +48,13 @@ def decodeState( state ): else: return "UNKNOWN STATE (" + state + ")." - -# Maven 2.x project - -def addMavenTwoProject( url ): - result = checkResult( server.continuum.addMavenTwoProject( url ) ) - - return result[ "projectId" ] - -def addProjectFromUrl( url, builderId ): - result = checkResult( server.continuum.addProjectFromUrl( url, builderId ) ) - - return result[ "projectId" ] - -def addProjectFromScm( scmUrl, builderId, name, nagEmailAddress, version, configuration ): - result = checkResult( server.continuum.addProjectFromScm( scmUrl, builderId, name, nagEmailAddress, version, configuration ) ) - - return result[ "projectId" ] +#################################################################### +# These methods correspods 1<=>1 with the ContinuumXmlRpc interface +#################################################################### + +#################################################################### +# Project handling +#################################################################### def getProject( projectId ): result = checkResult( server.continuum.getProject( projectId ) ) @@ -85,6 +75,10 @@ def getAllProjects(): def removeProject( projectId ): checkResult( server.continuum.removeProject( projectId ) ) +#################################################################### +# Build handling +#################################################################### + def buildProject( projectId ): result = checkResult( server.continuum.buildProject( projectId ) ) @@ -114,6 +108,42 @@ def getBuildResult( buildId ): return BuildResult( buildResult ) +#################################################################### +# Maven 2.x project +#################################################################### + +def addMavenTwoProject( url ): + result = checkResult( server.continuum.addMavenTwoProject( url ) ) + + return result[ "projectId" ] + +#################################################################### +# Maven 1.x project +#################################################################### + +def addMavenOneProject( url ): + result = checkResult( server.continuum.addMavenOneProject( url ) ) + + return result[ "projectId" ] + +#################################################################### +# Ant project +#################################################################### + +def addAntProject( scmUrl, projectName, nagEmailAddress, version, configuration ): + result = checkResult( server.continuum.addAntProject( scmUrl, projectName, nagEmailAddress, version, configuration ) ) + + return result[ "projectId" ] + +#################################################################### +# Shell project +#################################################################### + +def addShellProject( scmUrl, projectName, nagEmailAddress, version, configuration ): + result = checkResult( server.continuum.addShellProject( scmUrl, projectName, nagEmailAddress, version, configuration ) ) + + return result[ "projectId" ] + class Project: def __init__( self, map ): self.map = map
infrastructure at apache.org | ViewVC Help |
Powered by ViewVC 1.1.26 |