与詹金斯的iOS CI

时间:2016-02-05 01:19:14

标签: ios ruby jenkins continuous-integration

我正在尝试使用Jenkins为iOS设置CI。我安装了所有插件,这些是我的Build脚本。我按照这里的步骤进行了操作:https://www.built.io/blog/2014/10/how-to-set-up-customized-jenkins-for-ios/

对于环境变量:

我使用环境注入器插件注入变量:

 PROJECT_DIR_NAME=AppName-dir
 PROJECT_NAME=AppName-app
 IPA_PATH=${WORKSPACE}/ipa-dir/${PROJECT_DIR_NAME}-${BUILD_ID}.ipa
 PROJFILENAME=${WORKSPACE}/${PROJECT_NAME}.xcodeproj
 TARGET=${PROJECT_NAME}
 PROVPROFILE_UUID=moj.io Inc.
 INFOPLIST_FILE=${WORKSPACE}/${PROJECT_NAME}/${PROJECT_NAME}-Info.plist

构建脚本是:

projmodify ${PROJFILENAME} ${TARGET} "iPhone Distribution: CompanyName" ${PROVPROFILE_UUID}
 /usr/libexec/PlistBuddy -c "Set :CFBundleVersion ${BUILD_NUMBER}" "${INFOPLIST_FILE}"

这给了我错误:

/Library/Ruby/Gems/2.0.0/gems/zerg_xcode-0.5.0/lib/zerg_xcode/paths.rb:27:in `open': No such file or directory - /Users/Shared/Jenkins/.jenkins/jobs/App_iOS_Build/workspace/AppName-app.xcodeproj (Errno::ENOENT)
    from /Library/Ruby/Gems/2.0.0/gems/zerg_xcode-0.5.0/lib/zerg_xcode/paths.rb:27:in `entries'
    from /Library/Ruby/Gems/2.0.0/gems/zerg_xcode-0.5.0/lib/zerg_xcode/paths.rb:27:in `project_file_at'
    from /Library/Ruby/Gems/2.0.0/gems/zerg_xcode-0.5.0/lib/zerg_xcode/shortcuts.rb:12:in `load'
    from /usr/bin/projmodify.rb:7:in `doctorProject'
    from /usr/bin/projmodify.rb:41:in `<main>'

我做错了什么?

0 个答案:

没有答案