Bash init script not executed on aws slave

14 views
Skip to first unread message

Yair Zohar

unread,
Jun 20, 2018, 8:53:35 AM6/20/18
to Jenkins Users


Hello,

I'm trying to execute bash commands on an AWS slave immediately after startup.

the commands should log in the slave to aws 

I added the commands on Jenkins -> configuration -> AMIs -> Init script




On slave's logs I see:

INFO: Authenticating as ubuntu
Jun 20, 2018 11:55:00 AM null
INFO
: Connecting to ec2-18-206-154-100.compute-1.amazonaws.com on port 22, with timeout 10000.
Jun 20, 2018 11:55:10 AM null
INFO
: Failed to connect via ssh: The kexTimeout (10000 ms) expired.
Jun 20, 2018 11:55:10 AM null
INFO
: Waiting for SSH to come up. Sleeping 5.
Jun 20, 2018 11:55:15 AM null
INFO
: Connecting to ec2-XX-XXX-XXX-XXX.compute-1.amazonaws.com on port 22, with timeout 10000.
Jun 20, 2018 11:55:23 AM null
INFO
: Connected via SSH.
Jun 20, 2018 11:55:23 AM null
INFO
: connect fresh as root
Jun 20, 2018 11:55:23 AM null
INFO
: Connecting to ec2-XX-XXX-XXX-XXX.compute-1.amazonaws.com on port 22, with timeout 10000.
Jun 20, 2018 11:55:24 AM null
INFO
: Connected via SSH.





 
Reply all
Reply to author
Forward
0 new messages