From 3ea2728b69176f7e264b7360d534741dcaab2e16 Mon Sep 17 00:00:00 2001 From: James Turner Date: Tue, 14 Aug 2012 12:11:48 +0100 Subject: [PATCH] Mac: Keychain unlock needs to happen later. Apparently the keychain re-locks fairly rapidly, so run the unlock script right before running the packaging script. This is non-portable to another Mac slave, but will do for now. --- hudson_mac_build_release.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hudson_mac_build_release.sh b/hudson_mac_build_release.sh index 8b29689..55e7608 100755 --- a/hudson_mac_build_release.sh +++ b/hudson_mac_build_release.sh @@ -65,5 +65,9 @@ echo "Syncing base packages files from sphere.telascience.org" rsync -avz --filter 'merge base-package.rules' \ -e ssh jturner@sphere.telascience.org:/home/jturner/fgdata . +# run the unlock script now - we need to do this right before code-signing, +# or the keychain may automatically re-lock after some period of time +/Users/Shared/Hudson/unlock-keychain.sh + echo "Running package script" ./hudson_mac_package_release.rb