Skip to content

Commit

Permalink
Problem: unit test results don't highlight failure
Browse files Browse the repository at this point in the history
Solution: append FAILED to the build log file name when failure
is detected.

closes #2752
  • Loading branch information
dkliban committed May 19, 2017
1 parent b05ff47 commit 131156f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ci/jobs/unittests.yaml
Expand Up @@ -153,7 +153,8 @@
export NODE=${JOB_NAME##*/}
export SHORT_JOB_NAME=${JOB_NAME/\/$NODE/}
curl -k -o $NODE.txt $BUILD_URL/consoleText
rsync -rv --rsync-path="mkdir -p ~/public_html/jenkins/jobs/${SHORT_JOB_NAME}/builds/${BUILD_ID}/ && rsync" $NODE.txt pulpadmin@repos.fedorapeople.org:public_html/jenkins/jobs/${SHORT_JOB_NAME}/builds/${BUILD_ID}/
if grep -q FAILED $NODE.txt ; then mv $NODE.txt $NODE-FAILED.txt; fi
rsync -rv --rsync-path="mkdir -p ~/public_html/jenkins/jobs/${SHORT_JOB_NAME}/builds/${BUILD_ID}/ && rsync" $NODE*.txt pulpadmin@repos.fedorapeople.org:public_html/jenkins/jobs/${SHORT_JOB_NAME}/builds/${BUILD_ID}/
publishers:
Expand Down Expand Up @@ -314,7 +315,8 @@
export NODE=${{JOB_NAME##*/}}
export SHORT_JOB_NAME=${{JOB_NAME/\/$NODE/}}
curl -k -o $NODE.txt $BUILD_URL/consoleText
rsync -rv --rsync-path="mkdir -p ~/public_html/jenkins/jobs/${{SHORT_JOB_NAME}}/builds/${{BUILD_ID}}/ && rsync" $NODE.txt pulpadmin@repos.fedorapeople.org:public_html/jenkins/jobs/${{SHORT_JOB_NAME}}/builds/${{BUILD_ID}}/
if grep -q FAILED $NODE.txt ; then mv $NODE.txt $NODE-FAILED.txt; fi
rsync -rv --rsync-path="mkdir -p ~/public_html/jenkins/jobs/${{SHORT_JOB_NAME}}/builds/${{BUILD_ID}}/ && rsync" $NODE*.txt pulpadmin@repos.fedorapeople.org:public_html/jenkins/jobs/${{SHORT_JOB_NAME}}/builds/${{BUILD_ID}}/
publishers:
Expand Down

0 comments on commit 131156f

Please sign in to comment.