Updated test script.
This commit is contained in:
1 parent
b764726d99
commit
5208be6cd1
1 file changed
+3
-1
@@ -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 <allocation_file> <ppinto_password>
|
||||
for assignment in $( cat $1); do
|
||||
echo $assignment
|
||||
IFS=: read -a fields <<<"$assignment"
|
||||
|
||||
Reference in new issue
Block a user