[ONOS-7346]ver.k
Change-Id: I556dca73fd26e7eded96f34b2a47dc7d3885721b
diff --git a/jjb/OnosSystemTest/onos-test-freestyle.yaml b/jjb/OnosSystemTest/onos-test-freestyle.yaml
index e1b0607..4e4c4c6 100644
--- a/jjb/OnosSystemTest/onos-test-freestyle.yaml
+++ b/jjb/OnosSystemTest/onos-test-freestyle.yaml
@@ -213,22 +213,7 @@
builders:
- shell: !include-raw-escape: pre-check-style.sh
- - shell:
- command: |
- #!/bin/bash
- cd
- cd $WORKSPACE/OnosSystemTest/
- modifiedFiles=$(git diff-tree --no-commit-id --name-only -r HEAD | grep \.py) || modifiedFiles=""
- if [ -n "$modifiedFiles" ]
- then
- pep8 --repeat --show-source --show-pep8 --ignore=E251,E201,E302,E202,E126,E127,E203,E226,E501,W391 $modifiedFiles > $WORKSPACE/pep8Result.txt
- else
- touch $WORKSPACE/pep8Result.txt
- rm -rf $WORKSPACE/OnosSystemTest/
- echo "There were no files to code check, failing test so Jenkins doesn't comment."
- exit 2
- fi
- unstable-return: 1
+ - shell: !include-raw-escape: check-style.sh
- shell: !include-raw-escape: post-check-style.sh
publishers:
@@ -236,15 +221,9 @@
workspace-file-scanners:
- file-pattern: pep8Result.txt
scanner: Pep8
- messages-to-ignore: |
- Skipping
- file
- of
- module
- /var/lib/jenkins/workspace/TestON_Style_Check/pep8Result.txt
- because
- it's
- empty.
+ total-thresholds:
+ unstable:
+ total-all: 1
- job-template:
name: delta-nightly