org.wso2.carbon.appfactory.jenkins.deploy
Class JenkinsArtifactDeployer
java.lang.Object
org.wso2.carbon.appfactory.deployers.AbstractDeployer
org.wso2.carbon.appfactory.deployers.AbstractStratosDeployer
org.wso2.carbon.appfactory.jenkins.deploy.JenkinsArtifactDeployer
- All Implemented Interfaces:
- org.wso2.carbon.appfactory.core.Deployer
public class JenkinsArtifactDeployer
- extends org.wso2.carbon.appfactory.deployers.AbstractStratosDeployer
| Fields inherited from class org.wso2.carbon.appfactory.deployers.AbstractDeployer |
adminPassword, adminUserName, appfactoryServerURL, buildStatusProvider, storagePath, tempPath, tenantDomain, tenantID |
|
Method Summary |
void |
deployLatestSuccessArtifact(Map<String,String[]> parameters)
|
void |
deployTaggedArtifact(Map<String,String[]> requestParameters)
|
protected String |
getAdminPassword()
|
protected String |
getAdminUserName()
|
String |
getArtifactStoragePath(String applicationId,
String applicationVersion,
String artifactType,
String stage,
String tenantDomain)
|
protected String |
getBaseRepoUrl()
|
String |
getSuccessfulArtifactTempStoragePath(String applicationId,
String applicationVersion,
String artifactType,
String stage,
String tenantDomain,
String jobName)
|
void |
labelAsPromotedArtifact(String jobName,
String tagName)
|
void |
labelLastSuccessAsPromoted(String applicationId,
String version,
String artifactType,
String extension,
String jobName)
|
void |
postDeploymentNoifier(String message,
String applicationId,
String applicationVersion,
String artifactType,
String stage,
String tenantDomain)
|
protected void |
triggerBuild(String jobName,
String buildUrl,
org.apache.commons.httpclient.NameValuePair[] queryParameters)
This method is used to build the specified job
build parameters are set in such a way that it does not execute any post build actions |
| Methods inherited from class org.wso2.carbon.appfactory.deployers.AbstractStratosDeployer |
deploy, generateRepoUrl, unDeployArtifact |
| Methods inherited from class org.wso2.carbon.appfactory.deployers.AbstractDeployer |
deployPromotedArtifact, getAdminUsername, getAdminUsername, getArtifact, getLastBuildArtifact, getServerAdminPassword, getStoragePath, getTenantDomain, getTenantID, handleException, handleException, labelLastSuccessAsPromoted, setAdminPassword, setAdminUserName, setAppfactoryServerURL, setStoragePath, setTempPath, setTenantDomain, setTenantID |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
descriptor
protected AppfactoryPluginManager.DescriptorImpl descriptor
JenkinsArtifactDeployer
public JenkinsArtifactDeployer()
deployLatestSuccessArtifact
public void deployLatestSuccessArtifact(Map<String,String[]> parameters)
throws org.wso2.carbon.appfactory.common.AppFactoryException
- Specified by:
deployLatestSuccessArtifact in interface org.wso2.carbon.appfactory.core.Deployer- Overrides:
deployLatestSuccessArtifact in class org.wso2.carbon.appfactory.deployers.AbstractDeployer
- Throws:
org.wso2.carbon.appfactory.common.AppFactoryException
triggerBuild
protected void triggerBuild(String jobName,
String buildUrl,
org.apache.commons.httpclient.NameValuePair[] queryParameters)
throws org.wso2.carbon.appfactory.common.AppFactoryException
- This method is used to build the specified job
build parameters are set in such a way that it does not execute any post build actions
- Parameters:
jobName - job that we need to buildbuildUrl - url used to trigger the build
- Throws:
org.wso2.carbon.appfactory.common.AppFactoryException
labelLastSuccessAsPromoted
public void labelLastSuccessAsPromoted(String applicationId,
String version,
String artifactType,
String extension,
String jobName)
throws org.wso2.carbon.appfactory.common.AppFactoryException,
IOException,
InterruptedException
- Throws:
org.wso2.carbon.appfactory.common.AppFactoryException
IOException
InterruptedException
labelAsPromotedArtifact
public void labelAsPromotedArtifact(String jobName,
String tagName)
getSuccessfulArtifactTempStoragePath
public String getSuccessfulArtifactTempStoragePath(String applicationId,
String applicationVersion,
String artifactType,
String stage,
String tenantDomain,
String jobName)
throws org.wso2.carbon.appfactory.common.AppFactoryException
- Specified by:
getSuccessfulArtifactTempStoragePath in class org.wso2.carbon.appfactory.deployers.AbstractDeployer
- Throws:
org.wso2.carbon.appfactory.common.AppFactoryException
getArtifactStoragePath
public String getArtifactStoragePath(String applicationId,
String applicationVersion,
String artifactType,
String stage,
String tenantDomain)
throws org.wso2.carbon.appfactory.common.AppFactoryException
- Specified by:
getArtifactStoragePath in class org.wso2.carbon.appfactory.deployers.AbstractDeployer
- Throws:
org.wso2.carbon.appfactory.common.AppFactoryException
postDeploymentNoifier
public void postDeploymentNoifier(String message,
String applicationId,
String applicationVersion,
String artifactType,
String stage,
String tenantDomain)
- Specified by:
postDeploymentNoifier in class org.wso2.carbon.appfactory.deployers.AbstractDeployer
getBaseRepoUrl
protected String getBaseRepoUrl()
throws org.wso2.carbon.appfactory.common.AppFactoryException
- Specified by:
getBaseRepoUrl in class org.wso2.carbon.appfactory.deployers.AbstractStratosDeployer
- Throws:
org.wso2.carbon.appfactory.common.AppFactoryException
getAdminPassword
protected String getAdminPassword()
throws org.wso2.carbon.appfactory.common.AppFactoryException
- Specified by:
getAdminPassword in class org.wso2.carbon.appfactory.deployers.AbstractStratosDeployer
- Throws:
org.wso2.carbon.appfactory.common.AppFactoryException
getAdminUserName
protected String getAdminUserName()
throws org.wso2.carbon.appfactory.common.AppFactoryException
- Specified by:
getAdminUserName in class org.wso2.carbon.appfactory.deployers.AbstractStratosDeployer
- Throws:
org.wso2.carbon.appfactory.common.AppFactoryException
deployTaggedArtifact
public void deployTaggedArtifact(Map<String,String[]> requestParameters)
throws Exception
- Throws:
Exception
Copyright © 2015 WSO2 Inc. All rights reserved.