我想在jenkins中執行一項新任務。Jenkins作業和GIT/maven
我想在jenkins工作區中克隆一個git倉庫。這個存儲庫有兩個文件夾,每個maven項目都有一個文件夾。
但是,我只需要在其中一個文件夾中執行mvn命令。
我該怎麼辦navegate糾正文件夾,並在jenkins中發出mvn命令?
我已籤「諮詢庫(SCM)」選項,然後我嘗試以前執行shell腳本來運行mvn命令那樣:
cd $WORKSPACE/CompositeApplicationExampleProject/
但我得到這個錯誤:
[pruebaJenkins] $ /bin/sh -xe /clinker/jenkins/temp/hudson5899551334803596574.sh
+ cd /clinker/jenkins/data/workspace/pruebaJenkins/CompositeApplicationExampleProject/
/clinker/jenkins/temp/hudson5899551334803596574.sh: 2: cd: can't cd to/clinker/jenkins/data/workspace/pruebaJenkins/CompositeApplicationExampleProject/
Build step 'Execute shell' marked build as failureFinished:
FAILURE