...
 
Commits (2)
......@@ -24,16 +24,26 @@ fi
if [ -z "$JOB_NAME" ] ; then
echo "You need to define a job name $JOB_NAME"
exit -1
exit 1
fi
if [ -z "$IMAGE_URL" ] ; then
echo "You need to define a url $IMAGE_URL"
exit -1
exit 1
fi
if [ -z "$TEMPLATE_FILE" ] ; then
echo "You need to define a $TEMPLATE_FILE"
exit -1
exit 1
fi
if ! type create-job.py 2>/dev/null >&2 ; then
this=$(dirname "$0")
if [ -x "$this/create-job.py" ] ; then
export PATH="$PATH:$this"
else
echo "Can not find create-job.py to generate lava jobs"
exit 1
fi
fi
jenkins_message() {
......