From 7a41f4fd19e9e8ac145911d87e4f7045606014b0 Mon Sep 17 00:00:00 2001 From: Brad Rydzewski Date: Mon, 8 May 2017 02:14:53 +0200 Subject: [PATCH] update ci.sh to print error --- ci.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ci.sh b/ci.sh index ef88cb08..d9539ce4 100755 --- a/ci.sh +++ b/ci.sh @@ -1,11 +1,10 @@ #!/bin/sh -set -e # only execute this script as part of the pipeline. -[ -z $CI ] && exit 1 +[ -z $CI ] && echo "missing ci enviornment variable" && exit 2 # only execute the script when github token exists. -[ -z $SSH_KEY ] && exit 1 +[ -z $SSH_KEY ] && echo "missing ssh key" && exit 3 # write a netrc file for authorization. mkdir /root/.ssh @@ -13,7 +12,8 @@ echo -n "$SSH_KEY" > /root/.ssh/id_rsa chmod 600 /root/.ssh/id_rsa # clone the extras project. -set +x +set -e +set -x git clone git@github.com:drone/drone-enterprise.git extras # build a static binary with the build number and extra features.