-
New Feature
-
Resolution: Unresolved
-
Minor
-
None
Selecting "Unlock Keychain" option only show the globally configured keychains, or manual option.
There should be an option to unlock the keychain provided by the Credentials plugin through the ".developerprofile" file.
Current workaround is having a execute script step that runs this line:
security list-keychain -s "jenkins-${JOB_NAME}"
Which works because the Credentials plugin already unlocks the keychain, just doesn't it add it to the keychain list.
Ideally the Xcode Plugin should have the option to easily just use that keychain.
This is the script I need to run to add the keychain and keep it unlocked without timeouts:
The only issue is that concurrent builds with different temporary keychains have conflicts, since the keychain is serial.
Another option would be to use this build option (not tried yet):
OTHER_CODE_SIGN_FLAGS='--keychain jenkins-${JOB_NAME}'
To force xcodebuild to use that.