From d101fa79dd803a7a560c7447e7118206c1c183cd Mon Sep 17 00:00:00 2001 From: Axel Uhl Date: Tue, 27 Nov 2018 16:12:53 +0100 Subject: [PATCH] give Java11 Hudson nodes a recognizable name Change-Id: I9de1a0c9ebab14f8ac06d9f02fdabf16b2a8fa4d --- configuration/launchhudsonslave-java11 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configuration/launchhudsonslave-java11 b/configuration/launchhudsonslave-java11 index 3e2d8f42257..0dc430eef52 100755 --- a/configuration/launchhudsonslave-java11 +++ b/configuration/launchhudsonslave-java11 @@ -3,7 +3,7 @@ AWS=/root/.local/bin/aws REGION=eu-west-1 HUDSON_SLAVE_AMI_ID=ami-0afdd1680ad31c094 echo Launching instance... -instanceid=`$AWS ec2 run-instances --image-id $HUDSON_SLAVE_AMI_ID --count 1 --instance-type c5d.4xlarge --key-name Axel --security-groups "Sailing Analytics App" --region $REGION --placement AvailabilityZone=eu-west-1c --tag-specifications 'ResourceType=instance,Tags=[{Key=Name,Value=Hudson Ubuntu Slave}]' --instance-initiated-shutdown-behavior terminate | tee /tmp/slavelaunch.out | jq .Instances[0].InstanceId | sed -e 's/"//g'` +instanceid=`$AWS ec2 run-instances --image-id $HUDSON_SLAVE_AMI_ID --count 1 --instance-type c5d.4xlarge --key-name Axel --security-groups "Sailing Analytics App" --region $REGION --placement AvailabilityZone=eu-west-1c --tag-specifications 'ResourceType=instance,Tags=[{Key=Name,Value=Hudson Ubuntu Slave Java 11}]' --instance-initiated-shutdown-behavior terminate | tee /tmp/slavelaunch.out | jq .Instances[0].InstanceId | sed -e 's/"//g'` if [ "$instanceid" = "" ]; then echo Error launching instance exit 1