From 5208be6cd17f78c0dc94792f65d9c2945b5ce510 Mon Sep 17 00:00:00 2001 From: Pedro Pinto Date: Thu, 10 May 2018 12:00:19 -0400 Subject: [PATCH] Updated test script. --- testing/post_to_jira.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/testing/post_to_jira.sh b/testing/post_to_jira.sh index d1c3b0b90..84f7a5482 100644 --- a/testing/post_to_jira.sh +++ b/testing/post_to_jira.sh @@ -11,7 +11,8 @@ function post_issue() tmpfile=$(mktemp /tmp/post_to_jira.XXXXXX) commit=`git show --summary | head -n 1 | awk '{print $2}'` url="https://bitbucket.org/bluetradesys/spark/src/$commit/testing/manual/$test?at=master&fileviewer=file-view-default" - source jira_template.txt + source jira_template.txt + echo pedro.pinto+atlassian@bluetradesys.com:$1 curl -D- -u pedro.pinto+atlassian@bluetradesys.com:$1 -X POST --data "$post_cmd" -H "Content-Type: application/json" https://bluetradesys.atlassian.net/rest/api/2/issue #2>/dev/null >$tmpfile issue_id=`grep \"key\" $tmpfile | awk -F',' '{print $2}' | awk -F':' '{print $2}' | tr -d '"'` echo "issue_id: $issue_id end_issue_id" @@ -20,6 +21,7 @@ function post_issue() source cycle_info.txt +# invoke with ./post_to_jira.sh for assignment in $( cat $1); do echo $assignment IFS=: read -a fields <<<"$assignment"