I'm trying to set Jenkins up for xcode, and I keep getting certification errors.
In my shell script I have this command:security unlock-keychain $KEYCHAIN
But since Jenkins is running as user 'jenkins' it seem to lack authority when unlocking the keychain and prints this error:
[workspace] $ /bin/sh -xe /var/folders/lD/lDiU3VbfHpm-KUHY26PrX++++Do/-Tmp-/hudson2556417005809365518.sh
+ sh build.sh
security: SecKeychainUnlock /Users/vb_admin/Library/Keychains/login.keychain: Could not write to the file. It may have been opened with insufficient access privileges.
Any ideas to fix this problem would be appreciated.
Thanks in advance!