Running: Print Message
08:55:38 workspace: null mvnCmd: /var/lib/jenkins/tools/maven/apache-maven-3.x/bin/mvn -B -Dmaven.repo.local=null/.m2
The following variables are currently unavailable inside a workflow script:
EXECUTOR_NUMBER
NODE_LABELS
WORKSPACE
SVN_REVISION
--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/5d2f08e0-f692-4b6e-a657-dbb5bc66a251%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/56A9114F.8080909%40cd-adapco.com.
checkout scm: [$class: 'GitSCM', branches: [[name: '*/develop']], userRemoteConfigs: [[url: 'ssh:...@myserver:port/myrepo.git']]]
stage 'unit-test'env.JAVA_HOME="${tool 'Oracle-JDK8-64bit'}"def mvnHome = tool 'apache-maven-3.x'def workSpace = env.WORKSPACEdef mvnCmd = "${mvnHome}/bin/mvn -B -Dmaven.repo.local=${workSpace}/.m2"echo "workspace: ${workSpace} mvnCmd: ${mvnCmd}"sh "${mvnCmd}/bin/mvn -B clean install"
....
But workspace is null:
Running: Print Message 08:55:38 workspace: null mvnCmd: /var/lib/jenkins/tools/maven/apache-maven-3.x/bin/mvn -B -Dmaven.repo.local=null/.m2
Should it not be assigned to the env.WORKSPACE var by default?
--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/5d2f08e0-f692-4b6e-a657-dbb5bc66a251%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.