slave created in jenkins but always showing offline due to below container initialization while running job
- cat
- chmod +x /tmp/init.sh
- exec /tmp/init.sh
- export CONFIG=/tmp/config.sh
- CONFIG=/tmp/config.sh
- ‘[’ ‘!’ -f /tmp/config.sh ‘]’
- echo 'No config, sleeping for 1 second’
No config, sleeping for 1 second - sleep 1
- ‘[’ ‘!’ -f /tmp/config.sh ‘]’
- echo 'No config, sleeping for 1 second’
No config, sleeping for 1 second - sleep 1
- ‘[’ ‘!’ -f /tmp/config.sh ‘]’
- echo 'No config, sleeping for 1 second’
No config, sleeping for 1 second - sleep 1
- ‘[’ ‘!’ -f /tmp/config.sh ‘]’
- echo 'No config, sleeping for 1 second’
No config, sleeping for 1 second - sleep 1
- ‘[’ ‘!’ -f /tmp/config.sh ‘]’
- echo 'No config, sleeping for 1 second’
No config, sleeping for 1 second - sleep 1
- ‘[’ ‘!’ -f /tmp/config.sh ‘]’
- echo 'No config, sleeping for 1 second’
No config, sleeping for 1 second - sleep 1
- ‘[’ ‘!’ -f /tmp/config.sh ‘]’
- echo 'No config, sleeping for 1 second’
No config, sleeping for 1 second - sleep 1
- ‘[’ ‘!’ -f /tmp/config.sh ‘]’
- echo 'No config, sleeping for 1 second’
No config, sleeping for 1 second - sleep 1
- ‘[’ ‘!’ -f /tmp/config.sh ‘]’
- echo 'No config, sleeping for 1 second’
No config, sleeping for 1 second - sleep 1
- ‘[’ ‘!’ -f /tmp/config.sh ‘]’
- echo 'No config, sleeping for 1 second’
No config, sleeping for 1 second - sleep 1
- ‘[’ ‘!’ -f /tmp/config.sh ‘]’
- echo 'Found config file’
Found config file - source /tmp/config.sh
++ JENKINS_URL=http://localhost:8081/
++ JENKINS_USER=
++ JENKINS_HOME=/home/jenkins
++ COMPUTER_URL=computer/docker-slave-e3fc24310380/
++ COMPUTER_SECRET=3b4251fca36ca511f45507f8dcb2f4f0433c4f316a441f3faed3ca9c59bda540 - ‘[’ -z http://localhost:8081/ ‘]’
- ‘[’ -z computer/docker-slave-e3fc24310380/ ‘]’
- ‘[’ ‘!’ -d /home/jenkins ‘]’
- JENKINS_HOME=/tmp
- ‘[’ -z /tmp ‘]’
++ command -v curl - ‘[’ -x /usr/bin/curl ‘]’
- curl -o /tmp/slave.jar http://localhost:8081//jnlpJars/slave.jar
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:–:-- --:–:-- --:–:-- 0curl: (7) Failed to connect to ::1: Cannot assign requested address