Currently I have a setup in Jenkins where i am using aws-ec2 plugin to launch new on-demand ec2 instance when job is triggered.
The Termination time is set to 5mins
So when the slave is idle for 5mins, the instance is stopped from AWS end however the jenkins slave is not deleted and the log stays stuck in Killed by signal 15
Last line of Slave logs
killed by signal 15
We have to manually delete the slave every time so that new instance can be created next time when job is triggered.
Kindly help to understand the issue