This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$LOAD_BALANCER_NAME="" | |
Instance_ids=`aws elb describe-load-balancers --load-balancer-name $LOAD_BALANCER_NAME --query "LoadBalancerDescriptions[*].{ID:LoadBalancerName,InstanceId:Instances[*].InstanceId}[*]. {ELB:ID,InstanceId:InstanceId[*]}" --output=json |jq -r ".[].InstanceId|@csv"` | |
for $INSTANCE_ID in ${Instance_ids[@]}: | |
do | |
private_ip=`aws ec2 describe-instances --instance-id $id |jq -r '.Reservations[].Instances[] | .PrivateIpAddress'` | |
aws elb deregister-instances-from-load-balancer --load-balancer-name $LOAD_BALANCER_NAME --instances $INSTANCE_ID | |
`ssh $username@$private_ip` < deployment_script.sh | |
aws elb register-instances-with-load-balancer --load-balancer-name $LOAD_BALANCER_NAME --instances $INSTANCE_ID | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Given that you have kicked off a build according to the DSL syntax | |
def results = build('RUN_THIS_JOB') | |
// Get out the name of the job again | |
println results.name | |
// Get the build ID | |
println results.id | |
// Get the build URL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def partitions=6 | |
def testResults | |
def buildResult | |
def staticAnalysisResult | |
def smokeTestResult | |
def performanceResult | |
def buildFlow= { buildResult= build( 'BUILDER' ) } | |
def performanceFlow= { performanceResult = build('PERFORMANCE')} |