Add job to stop branch environments

3 jobs for branch-test in 57 seconds (queued for 3 seconds)
Status Job ID Name Coverage
  Build
passed #73
build

00:00:16

 
  Deploy
passed #74
deploy_branch

00:00:18

failed #75
allowed to fail manual
stop_branch

00:00:22

 
Name Stage Failure
failed
stop_branch Deploy
$ echo "$SSH_HOST_KEY" > ~/.ssh/known_hosts
$ chmod 644 ~/.ssh/known_hosts
$ echo "$SSH_CONFIG" > ~/.ssh/config
$ chmod 644 ~/.ssh/config
$ REMOTE="$(echo $SSH_BRANCH_DEPLOY_DEST | cut -d':' -f1)"
$ PATH="$(echo $SSH_BRANCH_DEPLOY_DEST | cut -d':' -f2)"
$ ssh "$REMOTE" "rm -r $PATH"
/bin/bash: line 102: ssh: command not found
ERROR: Job failed: exit code 1