Sort Out isSession into function

9 jobs for master in 1 minute and 45 seconds (queued for 3 seconds)
Status Job ID Name Coverage
  Build
passed #695
docker-build

00:00:45

 
  Delete
failed #704
allowed to fail
delete-old-container

00:00:31

failed #702
allowed to fail
delete-old-container

00:00:33

failed #698
allowed to fail
delete-old-container

00:00:23

failed #696
allowed to fail
delete-old-container

00:00:24

 
  Deploy
failed #705
docker-deploy

00:00:28

failed #703
docker-deploy

00:00:26

failed #699
docker-deploy

00:00:27

failed #697
docker-deploy

00:00:26

 
Name Stage Failure
failed
docker-deploy Deploy
Skipping Git submodules setup
$ which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )
/usr/bin/ssh-agent
$ mkdir -p ~/.ssh
$ eval $(ssh-agent -s)
Agent pid 14
$ [[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
$ ssh-add <(echo "$STAGING_PRIVATE_KEY")
Enter passphrase for /dev/fd/63:
ERROR: Job failed: exit code 1
failed
delete-old-container Delete
Skipping Git submodules setup
$ which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )
/usr/bin/ssh-agent
$ mkdir -p ~/.ssh
$ eval $(ssh-agent -s)
Agent pid 14
$ [[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
$ ssh-add <(echo "$STAGING_PRIVATE_KEY")
Enter passphrase for /dev/fd/63:
ERROR: Job failed: exit code 1