public class CloneJenkinsStack extends Object
Constructor and Description |
---|
CloneJenkinsStack() |
Modifier and Type | Method and Description |
---|---|
protected void |
copyAMI(CloneJenkinsStackContext context) |
protected void |
copyAmi(String srcRegion,
Set<String> regions,
com.amazonaws.services.ec2.model.Image ami,
com.amazonaws.services.ec2.model.Tag stack) |
protected String |
copyAMI(String srcRegion,
String ami,
String amiName,
String dstRegion,
com.amazonaws.services.ec2.model.Tag stack) |
protected void |
copyBackups(CloneJenkinsStackContext context) |
protected String |
getJenkinsBackupKey(String artifactId,
String version,
String stack,
com.google.common.base.Optional<String> mode) |
protected String |
getJenkinsMasterBackupKey(String version,
String stack,
String mode) |
protected String |
getJenkinsMasterRepoBackupKey(String stack) |
protected String |
getNewName(String amiName,
String stack) |
void |
test()
1 - Copy the latest ci.slave-xxx-test AMI from us-west-1 to all 3 US regions as ci.slave-xxx-prod
2 - Copy the latest jenkins-master-backup-xxx-test.tar.gz to jenkins-master-backup-xxx-prod.tar.gz 3 - Copy the latest jenkins-master-repo-m2-test.tar.gz to jenkins-master-repo-m2-prod.tar.gz |
public CloneJenkinsStack()
public void test() throws Exception
Exception
protected void copyAMI(CloneJenkinsStackContext context)
protected void copyBackups(CloneJenkinsStackContext context)
protected void copyAmi(String srcRegion, Set<String> regions, com.amazonaws.services.ec2.model.Image ami, com.amazonaws.services.ec2.model.Tag stack)
protected String getJenkinsMasterRepoBackupKey(String stack)
protected String getJenkinsMasterBackupKey(String version, String stack, String mode)
protected String getJenkinsBackupKey(String artifactId, String version, String stack, com.google.common.base.Optional<String> mode)
protected String getNewName(String amiName, String stack)
Copyright © 2004–2014 The Kuali Foundation. All rights reserved.