mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-20 04:35:32 +00:00
also close socket (again) after properly closing input stream
Change-Id: I74d9b6fe74decb8d1f43ed8bff8d2f72d2c8fe2b
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
AWS=/root/.local/bin/aws
|
||||
REGION=eu-west-1
|
||||
HUDSON_SLAVE_AMI_ID=ami-0f6962a59a3a52d8b
|
||||
HUDSON_SLAVE_AMI_ID=ami-0d5067168c7514538
|
||||
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'`
|
||||
if [ "$instanceid" = "" ]; then
|
||||
|
||||
+1
@@ -376,6 +376,7 @@ public abstract class AbstractServerReplicationTestSetUp<ReplicableInterface ext
|
||||
}
|
||||
pw.close();
|
||||
inputStream.close();
|
||||
s.close();
|
||||
logger.info("Request handled successfully.");
|
||||
}
|
||||
} catch (IOException | ServletException e) {
|
||||
|
||||
Reference in New Issue
Block a user