From 380ed13d54f75249430a14d1bfa4581deb8a43c5 Mon Sep 17 00:00:00 2001 From: "James E. Blair" Date: Fri, 15 Apr 2016 14:28:12 -0700 Subject: [PATCH] Don't pass URL to safe jenkins shutdown We're already on the host, and this defaults to localhost, so this is simpler and doesn't go through the apache proxy. Change-Id: Iac1047dc0a482d21466ab062f3aa3b0ef9144f38 --- playbooks/restart_jenkins_masters.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playbooks/restart_jenkins_masters.yaml b/playbooks/restart_jenkins_masters.yaml index bdad5bf6af..1d52ad195a 100644 --- a/playbooks/restart_jenkins_masters.yaml +++ b/playbooks/restart_jenkins_masters.yaml @@ -6,7 +6,7 @@ # masters. any_errors_fatal: true tasks: - - shell: '/usr/local/jenkins/bin/safe_jenkins_shutdown --url https://{{ ansible_fqdn }}/ --user {{ user }} --password {{ password }}' + - shell: '/usr/local/jenkins/bin/safe_jenkins_shutdown --user {{ user }} --password {{ password }}' - service: name=jenkins state=stopped # This is necessary because stopping Jenkins is not reliable. # We allow return code 1 which means no processes found.