问答详情
源自:5-3 运行部署任务

求大神指教,这是不是权限的问题?

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


提问者:慕数据1034889 2019-06-26 22:23

个回答

  • 慕标0522788
    2019-10-22 14:26:09

    chmod +x deploy.sh 试下

  • 乌云下的风
    2019-06-28 01:22:39

    sh: 0: Can't open /root/.jenkins/workspace/DeployOrder/oeder/deploy.sh
    我只能说是错原因是没有找到 deploy.sh 这个脚本,或者像你说的 没有这个脚本的权限,看看是不是路径的问题