diff options
-rwxr-xr-x | run.sh | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -1,5 +1,5 @@ #!/bin/bash -# Usage ./run.sh +# Usage ./run.sh <pep8 ignore options> # $WORKSPACE - Jenkins Workspace Variable # $BUILD_URL - Jenkins Build URL @@ -45,13 +45,13 @@ function pep8_check () if [[ -s $WORKSPACE/pep8 ]] then - echo "* Test Failed: PEP8 (pep8 --ignore E501 .)" >> $WORKSPACE/results + echo "* Test Failed: PEP8 (pep8 --ignore $1 .)" >> $WORKSPACE/results sed 's/^/*/g' $WORKSPACE/pep8 >> $WORKSPACE/results echo "PEP8 CHECK FAILED:" - pep8 --ignore E501 --show-source --show-pep8 . + pep8 --ignore $1 --show-source --show-pep8 . echo "* Please see the console output from the build url below for verbose PEP8 output" >> $WORKSPACE/results else - echo "* Test Passed: PEP8 (pep8 --ignore E501 .)" >> $WORKSPACE/results + echo "* Test Passed: PEP8 (pep8 --ignore $1 .)" >> $WORKSPACE/results fi } @@ -78,5 +78,5 @@ function publish_results () notify_committer check_step checkout_and_rebase -check_step pep8_check +check_step pep8_check $1 publish_results |