Skip to content

Commit

Permalink
tasks: Fix OpenShift instances
Browse files Browse the repository at this point in the history
Commit 93523ff broke OpenShift deployments: The `export HOME`
from `setup-tasks` isn't visible in the main `cockpit-tasks` loop, so
the GitHub API fails to resolve the user's home dir.

Put it back for now. This is far from elegant, but we need to unbreak
the statistics queue quickly.
  • Loading branch information
martinpitt committed Feb 15, 2024
1 parent 89b9700 commit 3a79ef0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tasks/cockpit-tasks
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ COCKPIT_BOTS_BRANCH=${COCKPIT_BOTS_BRANCH:-main}
WORKDIR="$PWD"
BOTS_DIR="$WORKDIR"/bots

# OpenShift instances with their random user don't set $HOME
if [ -z "${HOME}" ]; then
export HOME=/work
fi

echo "Starting testing"

function update_bots() {
Expand Down

0 comments on commit 3a79ef0

Please sign in to comment.