Finding a way so that nant can invoke maven

To achieve that mvn.cmd must be in the PATH.


Project: http://git-wip-us.apache.org/repos/asf/logging-log4net/repo
Commit: http://git-wip-us.apache.org/repos/asf/logging-log4net/commit/dfab7386
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4net/tree/dfab7386
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4net/diff/dfab7386

Branch: refs/heads/master
Commit: dfab738697b0d09cabc74b08ba841c52bca55db7
Parents: f6232d6
Author: Dominik Psenner <[email protected]>
Authored: Sat Jul 1 15:20:26 2017 +0200
Committer: Dominik Psenner <[email protected]>
Committed: Sat Jul 1 15:22:27 2017 +0200

----------------------------------------------------------------------
 Jenkinsfile | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/dfab7386/Jenkinsfile
----------------------------------------------------------------------
diff --git a/Jenkinsfile b/Jenkinsfile
index 767a98a..cce9e4d 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -22,8 +22,12 @@ pipeline {
                timeout(time: 1, unit: 'HOURS')
        }
        agent { label 'Windows' }
+       tools {
+               maven 'Maven 3.3.9 (Windows)'
+               jdk 'jdk8'
+       }
        environment {
-               // TODO: find a better way to determine nant latest
+               // TODO: find a better way to determine nant installation path
                NAnt = 'F:\\jenkins\\tools\\nant\\nant-0.92\\bin\\NAnt.exe'
        }
        stages {
@@ -44,7 +48,8 @@ pipeline {
                }
                stage('Build-Site') {
                        steps {
-                               bat "${NAnt} -buildfile:log4net.build 
generate-site"
+                               bat "set"
+                               // bat "${NAnt} -buildfile:log4net.build 
generate-site"
                        }
                }
                stage('Deploy-Site') {

Reply via email to