Skip to content

Commit 2b92582

Browse files
committed
fix(docker): The single quotes prevent $JENKINS_CONTROLLER from being expanded.
1 parent 6def213 commit 2b92582

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

dockerfiles/agent-discovery/find-name.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,8 @@ fi
8888
# Check If Jenkins is running or not
8989
# If the message is found, awk exits with a non-zero status (1), and the loop continues.
9090
# If the message is not found, the loop exits, and the "Jenkins is running" message is displayed.
91-
timeout 60 bash -c 'until curl -s -f http://$JENKINS_CONTROLLER:8080/login > /dev/null; do sleep 5; done' && echo "Jenkins is running" || echo "Jenkins is not running"
91+
timeout 60 bash -c "until curl -s -f http://${JENKINS_CONTROLLER}:8080/login > /dev/null; do sleep 5; done" && echo "Jenkins is running" || echo "Jenkins is not running"
92+
9293
echo "Jenkins is ready"
9394
# Get the Jenkins version
9495
JENKINS_VERSION=$(curl -s -I -k http://admin:admin@$JENKINS_CONTROLLER:8080 | grep -i '^X-Jenkins:' | awk '{print $2}')

0 commit comments

Comments
 (0)