Skip to content
This repository has been archived by the owner on Jan 30, 2024. It is now read-only.

Commit

Permalink
Set HOSTFILTER only if TARGET_MACHINES is set.
Browse files Browse the repository at this point in the history
Fixes bug introduced in #10146 which broke all-nodes deployments.
  • Loading branch information
sengi committed Feb 14, 2020
1 parent f00aea7 commit 9365972
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/govuk_jenkins/templates/jobs/deploy_app.yaml.erb
Expand Up @@ -20,7 +20,9 @@
export DEPLOY_TO="<%= @environment -%>"
export DEPLOY_TASK="$DEPLOY_TASK"
export TAG="$TAG"
export HOSTFILTER="$TARGET_MACHINES"
if [ "${TARGET_MACHINES:-all}" != "all" ]; then
export HOSTFILTER="$TARGET_MACHINES"
fi
export ORGANISATION="<%= @environment -%>"
export CI_DEPLOY_JENKINS_API_KEY="<%= @ci_deploy_jenkins_api_key -%>"
export GRAPHITE_HOST="<%= @graphite_host -%>"
Expand Down

0 comments on commit 9365972

Please sign in to comment.