Jenkinsfile: ignore test failures
Project: http://git-wip-us.apache.org/repos/asf/logging-log4net/repo Commit: http://git-wip-us.apache.org/repos/asf/logging-log4net/commit/a2f76e93 Tree: http://git-wip-us.apache.org/repos/asf/logging-log4net/tree/a2f76e93 Diff: http://git-wip-us.apache.org/repos/asf/logging-log4net/diff/a2f76e93 Branch: refs/heads/feature/RollingFileAppender-NG Commit: a2f76e93426cf2a9caaf25fd33525b33eec142a6 Parents: 0893994 Author: Dominik Psenner <[email protected]> Authored: Tue Jul 4 17:54:09 2017 +0200 Committer: Dominik Psenner <[email protected]> Committed: Tue Jul 4 17:54:09 2017 +0200 ---------------------------------------------------------------------- Jenkinsfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/a2f76e93/Jenkinsfile ---------------------------------------------------------------------- diff --git a/Jenkinsfile b/Jenkinsfile index ccfdd59..70de403 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -46,7 +46,7 @@ pipeline { checkout scm bat "${NANT_BIN} -t:net-3.5 -buildfile:log4net.build compile-net-3.5" stash includes: 'bin/**/*.*', name: 'net-3.5-assemblies' - bat "${NANT_BIN} -t:net-3.5 -buildfile:tests/nant.build runtests-net-3.5 || true" + bat "${NANT_BIN} -t:net-3.5 -buildfile:tests/nant.build runtests-net-3.5 && exit 0" junit 'tests/bin/**/results/*.*' } } @@ -60,7 +60,7 @@ pipeline { checkout scm bat "${NANT_BIN} -t:net-3.5 -buildfile:log4net.build compile-net-3.5-cp" stash includes: 'bin/**/*.*', name: 'net-3.5-cp-assemblies' - bat "${NANT_BIN} -t:net-3.5 -buildfile:tests/nant.build runtests-net-3.5-cp || true" + bat "${NANT_BIN} -t:net-3.5 -buildfile:tests/nant.build runtests-net-3.5-cp && exit 0" junit 'tests/bin/**/results/*.*' } } @@ -74,7 +74,7 @@ pipeline { checkout scm bat "${NANT_BIN} -t:net-4.0 -buildfile:log4net.build compile-net-4.0" stash includes: 'bin/**/*.*', name: 'net-4.0-assemblies' - bat "${NANT_BIN} -t:net-4.0 -buildfile:tests/nant.build runtests-net-4.0 || true" + bat "${NANT_BIN} -t:net-4.0 -buildfile:tests/nant.build runtests-net-4.0 && exit 0" junit 'tests/bin/**/results/*.*' } } @@ -88,7 +88,7 @@ pipeline { checkout scm bat "${NANT_BIN} -t:net-4.0 -buildfile:log4net.build compile-net-4.0-cp" stash includes: 'bin/**/*.*', name: 'net-4.0-cp-assemblies' - bat "${NANT_BIN} -t:net-4.0 -buildfile:tests/nant.build runtests-net-4.0-cp || true" + bat "${NANT_BIN} -t:net-4.0 -buildfile:tests/nant.build runtests-net-4.0-cp && exit 0" junit 'tests/bin/**/results/*.*' } } @@ -102,7 +102,7 @@ pipeline { checkout scm bat "${NANT_BIN} -t:net-4.0 -buildfile:log4net.build compile-net-4.5" stash includes: 'bin/**/*.*', name: 'net-4.5-assemblies' - bat "${NANT_BIN} -t:net-4.0 -buildfile:tests/nant.build runtests-net-4.5 || true" + bat "${NANT_BIN} -t:net-4.0 -buildfile:tests/nant.build runtests-net-4.5 && exit 0" junit 'tests/bin/**/results/*.*' } }
