Fixed typo
Project: http://git-wip-us.apache.org/repos/asf/logging-log4net/repo Commit: http://git-wip-us.apache.org/repos/asf/logging-log4net/commit/8aa305c3 Tree: http://git-wip-us.apache.org/repos/asf/logging-log4net/tree/8aa305c3 Diff: http://git-wip-us.apache.org/repos/asf/logging-log4net/diff/8aa305c3 Branch: refs/heads/master Commit: 8aa305c3e359f6aaf4a25351a373b1ab1de5679f Parents: 800a19e Author: Dominik Psenner <[email protected]> Authored: Fri Jun 30 20:47:45 2017 +0200 Committer: Dominik Psenner <[email protected]> Committed: Fri Jun 30 20:47:45 2017 +0200 ---------------------------------------------------------------------- Jenkinsfile | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/8aa305c3/Jenkinsfile ---------------------------------------------------------------------- diff --git a/Jenkinsfile b/Jenkinsfile index d8a93c7..b85fbd5 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -23,6 +23,9 @@ pipeline { options { timeout(time: 1, unit 'HOURS') }*/ + environment { + NAnt = 'F:\\jenkins\\tools\\nant\\nant-0.92\\bin\\NAnt.exe' + } stages { // TODO: find a better way to determine nant latest def NANT_LATEST="F:\\jenkins\\tools\\nant\\nant-0.92\\bin" @@ -35,17 +38,13 @@ pipeline { stage('Build') { agent { label 'Windows' } steps { - withEnv(["Path+NANT=$NANT_LATEST"]) { - bat "NAnt.exe -buildfile:log4net.build" - } + bat "${NAnt} -buildfile:log4net.build" } } - stage('Test') { + stage('Test on Windows') { agent { label 'Windows' } steps { - withEnv(["Path+NANT=$NANT_LATEST"]) { - bat "NAnt.exe -buildfile:tests\\nant.build" - } + bat "${NAnt} -buildfile:tests\\nant.build" } } stage('Build-Site') { @@ -65,7 +64,7 @@ pipeline { } } post { - failed { + failure { echo 'Failed build' // TODO: send email as soon as the entire building is more stable //step([$class: 'Mailer', notifyEveryUnstableBuild: true, recipients: '[email protected]'])
