Hi.
I'm having a hard time to finish my scripted pipeline to automate the iOS 
building of application from unity. I manage to do into bash console, but for 
some reason into Jenkins it failed with xcodebuild with codesign.
Executing the following with the same user as Jenkins run into a bash console 
work, but inside Jenkins the code signing never work (bad login, cannot find 
profiles...). I have unlock the keychains (also set it to be unlock for 120 min 
until lock again). I make the private certificate key allowed by all 
applications. What am I missing to make this work inside Jenkins?! anybody 
manage to do it?

security list-keychains -s `security list-keychains | xargs` my.keychain-db
security unlock-keychain my.keychain-dbxcodebuild -project 
Unity-iPhone.xcodeproj -configuration Release -scheme Unity-iPhone 
-allowProvisioningUpdates build
xcodebuild -project Unity-iPhone.xcodeproj -configuration Release -scheme 
Unity-iPhone -allowProvisioningUpdates -archivePath ~/my.xcarchive archive
xcodebuild -exportArchive -allowProvisioningUpdates -archivePath ~/my.xcarchive 
-exportPath ~/my.ipa -exportOptionsPlist ~/exportOptionsAdHoc.plist

Damn why it work in a normal bash and Jenkins toys around with some env 
settings it seem. How painful something that simple can be...

Thanks,
Jerome

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/YQXPR01MB32222E3FA54A1C0305B685BACDDD0%40YQXPR01MB3222.CANPRD01.PROD.OUTLOOK.COM.

Reply via email to