美文网首页
Jenkins不支持keychain解决方案

Jenkins不支持keychain解决方案

作者: 钓小鱼的猫 | 来源:发表于2021-12-09 09:11 被阅读0次

    尝试jenkiins插件的时候,测试发现新版jenkins通过上传keychina无响应
    于是采用脚本方式查找:

    # 存储路径
    cd /Users/wahaha/.jenkins/workspace/wahahaIos_ipa/ios
    #pwd
    
     
    rm -rf *.Adhoc.ipa
    
    
     
    LOGIN_KEYCHAIN=~/Library/Keychains/login.keychain-db
    # 用户密码
    LOGIN_PASSWORD=wahaha123456
    
    PackageName=wahaha_learn${BUILD_TIMESTAMP}.ipa 
    
    pod setup
     
    pod install
    
    
     
    security unlock-keychain -p ${LOGIN_PASSWORD} ${LOGIN_KEYCHAIN}
     
    xcodebuild clean -workspace Runner.xcworkspace  -scheme Runner
     
    xcodebuild -archivePath Runner.xcarchive   -workspace Runner.xcworkspace -sdk iphoneos -scheme Runner -configuration ${BUILD_TYPE} archive 
     
    xcodebuild -exportArchive -exportOptionsPlist /Users/wahaha/.jenkins/workspace/ExportOptions.plist   -archivePath Runner.xcarchive -exportPath  Runner_Test${BUILD_TIMESTAMP}.Adhoc.ipa
    

    相关文章

      网友评论

          本文标题:Jenkins不支持keychain解决方案

          本文链接:https://www.haomeiwen.com/subject/tctffrtx.html