From 74fd2ec6364cb6b0f45891c0ac4f7d9621b3d1d8 Mon Sep 17 00:00:00 2001 From: Roshani Rathi Date: Tue, 20 Oct 2020 16:52:00 +0530 Subject: [PATCH 1/2] Testing prow setup --- spectro/prow/presubmit.sh | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 spectro/prow/presubmit.sh diff --git a/spectro/prow/presubmit.sh b/spectro/prow/presubmit.sh new file mode 100644 index 000000000000..1da1b8af08e3 --- /dev/null +++ b/spectro/prow/presubmit.sh @@ -0,0 +1,2 @@ +echo "Hello world" + From cf57149aa07d8c5834632b9264da67c2758570cb Mon Sep 17 00:00:00 2001 From: Roshani Rathi Date: Wed, 21 Oct 2020 12:06:07 +0530 Subject: [PATCH 2/2] check everything in pod --- spectro/prow/presubmit.sh | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/spectro/prow/presubmit.sh b/spectro/prow/presubmit.sh index 1da1b8af08e3..6505bd8aee8c 100644 --- a/spectro/prow/presubmit.sh +++ b/spectro/prow/presubmit.sh @@ -1,2 +1,26 @@ -echo "Hello world" +#!/bin/bash +######################################## +# Presubmit script triggered by Prow. # +######################################## +action=$1 +if [[ ! ${action} ]]; then + action='default' +fi +WD=$(dirname $0) +WD=$(cd $WD; pwd) +ROOT=$(dirname $WD) +#source prow/functions.sh + +commenter + +# Exit immediately for non zero status +set -e +# Check unset variables +set -u +# Print command trace +set -x + +sleep 900 + +exit 0