tests: transition if under review

this commit attempts to transition any failed test issues if they ticket
is left in "Under Review" state

Signed-off-by: ldelossa <ldelossa@redhat.com>
This commit is contained in:
ldelossa
2020-08-29 15:32:28 -04:00
committed by Louis DeLosSantos
parent 3c1c4d95e1
commit 3bc5e42bd0
+4
View File
@@ -10,6 +10,10 @@ PLAN 84
($jira ls --project PROCESS | awk -F: '{print $1}' | while read issue; do ../jira start $issue; done) | sed 's/^/# CLEANUP: /g'
($jira ls --project PROCESS | awk -F: '{print $1}' | while read issue; do ../jira stop $issue; done) | sed 's/^/# CLEANUP: /g'
# for any issues still remaining, they are stuck in "Under Review" status
($jira ls --project PROCESS | awk -F: '{print $1}' | while read issue; do ../jira transition --noedit -m "approve" "Approve" $issue; done) | sed 's/^/# CLEANUP: /g'
($jira ls --project PROCESS | awk -F: '{print $1}' | while read issue; do ../jira transition --noedit -m "done" "Done" $issue; done) | sed 's/^/# CLEANUP: /g'
# reset login
RUNS $jira logout
echo "gojira123" | RUNS $jira login