我的Jenkins作业设置了IOS项目克隆(提取)来自Bitbucket的代码,但无法运行最后一个用于构建Xcode项目的脚本。 该脚本被调用。我得到以下错误,它对我来说并不意味着很多。 有没有人有类似的问题。我很确定项目设置有问题,因为jenkins中的其他工作运行完美。
PhaseScriptExecution Run\ Script
/Users/jenkins/Library/Developer/Xcode/DerivedData/myApp-Workspace-doqiapyymubizteljhyzayqxdtyk/Build/Intermediates/Target.build/Release-iphoneos/Target.build/Script-334A8A5117785D7D001DC5DA.sh
cd "/Users/Shared/Jenkins/Home/workspace/myApp - BETA"
/bin/sh -c /Users/jenkins/Library/Developer/Xcode/DerivedData/myDriveriOSDriver-Workspace- doqiapyymubizteljhyzayqxdtyk/Build/Intermediates/Driver.build/Release-iphoneos/Driver.build/Script-334A8A5117785D7D001DC5DA.sh
fatal: Not a git repository: '/Users/Shared/Jenkins/Home/workspace/myApp - BETA/../.git'
VERSION: 2.1.3.0
2014-01-24 13:54:29.529 defaults[61460:507] Unexpected argument Driver; leaving defaults unchanged.
Command /bin/sh failed with exit code 1
** BUILD FAILED **
The following build commands failed:
PhaseScriptExecution Run\ Script /Users/jenkins/Library/Developer/Xcode/DerivedData/myApp- Workspace-doqiapyymubizteljhyzayqxdtyk/Build/Intermediates/Target.build/Release-iphoneos/Target.build/Script-334A8A5117785D7D001DC5DA.sh
(1 failure)
上述脚本在致命错误之前设置了一些环境变量,包括;
...
setenv YACC yacc
setenv arch armv7s
setenv variant normal
答案 0 :(得分:0)
日志中存在明显错误:
致命:不是git存储库:'/ Users / Shared / Jenkins / Home / workspace / myApp - BETA /../。git'
答案 1 :(得分:0)
通过分析您的错误日志,我猜这个问题出现在以下声明中
cd“/ Users / Shared / Jenkins / Home / workspace / myApp - BETA”
而不是尝试
cd“/ Users / Shared / Jenkins / Home / workspace / myApp \ - \ BETA”
希望有所帮助