diff --git a/jenkins/jenkins_password.sh b/jenkins/jenkins_password.sh index e05f6f3c600..4cd064f4c2b 100755 --- a/jenkins/jenkins_password.sh +++ b/jenkins/jenkins_password.sh @@ -27,7 +27,7 @@ config="$srcdir/../docker-compose/jenkins.yml" if [ -n "${JENKINS_PASSWORD:-}" ]; then echo "using \$JENKINS_PASSWORD from environment" >&2 -elif docker ps &>/dev/null; then +elif docker ps | grep -q jenkins-server; then # /dev/null | grep -q .; then