/home/jenkins/agent/workspace/itksyxvm4n/ksy-server 这个目录 在docker里确实没找到 这个应该是自动创建吧,第二阶段执行mvn 命令直接报上面的错误,第一阶段从git 仓库拉代码下来是正常的日志如下:
The recommended git tool is: NONE
using credential ksy-gitlab
Warning: JENKINS-30600: special launcher org.csanchez.jenkins.plugins.kubernetes.pipeline.ContainerExecDecorator$1@351cf40a; decorates RemoteLauncher[hudson.remoting.Channel@4d162ff4:JNLP4-connect connection from 10.233.90.158/10.233.90.158:54006] will be ignored (a typical symptom is the Git executable not being run inside a designated container)
Cloning the remote Git repository
Cloning repository http://10.10.2.32:5280/simal/itksy-cloud
> git init /home/jenkins/agent/workspace/itksyxvm4n/ksy-server # timeout=10
Fetching upstream changes from http://10.10.2.32:5280/simal/itksy-cloud
> git --version # timeout=10
> git --version # 'git version 2.11.0'
using GIT_ASKPASS to set credentials
> git fetch --tags --progress -- http://10.10.2.32:5280/simal/itksy-cloud +refs/heads/*:refs/remotes/origin/* # timeout=10
Avoid second fetch
Checking out Revision e841ca059b81b57eeb9408be33395b8e159b37ef (refs/remotes/origin/master)
> git config remote.origin.url http://10.10.2.32:5280/simal/itksy-cloud # timeout=10
> git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10
> git rev-parse refs/remotes/origin/master^{commit} # timeout=10
> git config core.sparsecheckout # timeout=10
> git checkout -f e841ca059b81b57eeb9408be33395b8e159b37ef # timeout=10
> git branch -a -v --no-abbrev # timeout=10
> git checkout -b master e841ca059b81b57eeb9408be33395b8e159b37ef # timeout=10
Commit message: "Update settings.xml"
> git rev-list --no-walk e841ca059b81b57eeb9408be33395b8e159b37ef # timeout=10