Started by user adminRunning as SYSTEM Building remotely on TestEnv in workspace /root/.jenkins/workspace/DeployOrder using credential e6135a2d-38f9-4344-9b12-44d0ff468266 > /usr/bin/git rev-parse --is-inside-work-tree # timeout=10 Fetching changes from the remote Git repository > /usr/bin/git config remote.origin.url git@github.com:GitHubJZC/order.git # timeout=10 Fetching upstream changes from git@github.com:GitHubJZC/order.git > /usr/bin/git --version # timeout=10 using GIT_ASKPASS to set credentials > /usr/bin/git fetch --tags --progress git@github.com:GitHubJZC/order.git +refs/heads/*:refs/remotes/origin/* > /usr/bin/git rev-parse refs/remotes/origin/master^{commit} # timeout=10 > /usr/bin/git rev-parse refs/remotes/origin/origin/master^{commit} # timeout=10 Checking out Revision 61e6293e0740249842b5a94a8e71d682be981a27 (refs/remotes/origin/master) > /usr/bin/git config core.sparsecheckout # timeout=10 > /usr/bin/git checkout -f 61e6293e0740249842b5a94a8e71d682be981a27 Commit message: "update mysql configuration" First time build. Skipping changelog. [DeployOrder] $ /bin/bash /tmp/jenkins3700590841892924201.sh sh: 0: Can't open /root/.jenkins/workspace/DeployOrder/oeder/deploy.sh Build step 'Execute shell' marked build as failure Finished: FAILURE
chmod +x deploy.sh 试下
sh: 0: Can't open /root/.jenkins/workspace/DeployOrder/oeder/deploy.sh 我只能说是错原因是没有找到 deploy.sh 这个脚本,或者像你说的 没有这个脚本的权限,看看是不是路径的问题