node { stage('set-env'){ echo 'going to git clone......' git url: 'https://gitee.com/roclli/6-setting-env.git' echo "going to build.........." echo "---1:${tool 'M3'}---" withEnv(["PATH_MAVEN=${tool 'M3'}/bin"]){ echo "---2:${PATH_MAVEN}---" sh "${PATH_MAVEN}/mvn -B verify || true" sh "printenv" } }
}
|
近期评论