我有一个 Maven 多模块项目。我创建了一个管道来清理和部署我的项目。当我运行管道时,我得到以下输出:
``Started by user XXXXX
Checking out git http://XXXX:9080/gara/gara-back-end.git into /var/jenkins_home/workspace/gara-bo@script to read Jenkinsfile
using credential XXXXXXXXXXX
> git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
> git config remote.origin.url http://XXXXXXX:9080/gara/gara-back-end.git # timeout=10
Fetching upstream changes from http://XXXXX:9080/gara/gara-back-end.git
> git --version # timeout=10
using GIT_ASKPASS to set credentials
> git fetch --tags --force --progress http://XXXXXX:9080/gara/gara-back-end.git +refs/heads/*:refs/remotes/origin/*
> git rev-parse refs/remotes/origin/master^{commit} # timeout=10
> git rev-parse refs/remotes/origin/origin/master^{commit} # timeout=10
Checking out Revision c717022003b698421698238b13e1909f555172a0 (refs/remotes/origin/master)
> git config core.sparsecheckout # timeout=10
> git checkout -f XXXXXXXXXXXXXXX
Commit message: "Update Jenkinsfile"
> git rev-list --no-walk 7XXXXXXXXXXXXXXXXXXXXXXX # timeout=10
ERROR: /var/jenkins_home/workspace/gara-bo@script/Jenkinsfile not found
Finished: FAILURE``
为什么项目在 gara-bo@script 而不是 gara-bo 下签出?在服务器上,我有两个文件夹:gara-bo 和 gara-bo@script
``gara-bo contains : Jenkinsfile pom.xml src target WEB-INF
gara-bo@script : gara-common gara-dao gara-model gara-service gara-web JenkinsFile pom.xml``
但是 gara-bo@script 中的文件只是符号链接,因为当我尝试在 gara-bo@script 下读取 JenkinsFile 的内容时,这是不可能的。
你知道吗,请问我该如何纠正?