Haven't been able to find decent documentation on how to write bot scripts and Xcode Server has changed quite a bit in regards to folders and permissions.. basically just want to copy my .ipa and dSYM to another folder but when the script runs it returns:
cp: /Library/Developer/XcodeServer/IntegrationAssets/4f7c7e65532389e2a741d29758466c18-[Product NAME Here]/15/Archive.xcarchive.zip: No such file or directory
If I execute the copy after the integration is complete (not in the script) it works fine.. so my question is how/when do I copy the assets over in the "after integration" script of the bot? when are the files ready?
Thanks
My sample after integration script:
echo "Post"
set
echo
echo
echo /Library/Developer/XcodeServer/IntegrationAssets/$XCS_BOT_ID-$XCS_BOT_NAME/$XCS_INTEGRATION_NUMBER/Archive.xcarchive.zip
echo
echo "/Library/Developer/XcodeServer/IntegrationAssets/$XCS_BOT_ID-$XCS_BOT_NAME/$XCS_INTEGRATION_NUMBER/$XCS_PRODUCT"
echo
ASSETS_HOME="/tmp/XCS/$XCS_BOT_ID-$XCS_BOT_NAME/$XCS_INTEGRATION_NUMBER"
echo $ASSETS_HOME
mkdir -p "$ASSETS_HOME/"
cp -r "/Library/Developer/XcodeServer/IntegrationAssets/$XCS_BOT_ID-$XCS_BOT_NAME/$XCS_INTEGRATION_NUMBER/Archive.xcarchive.zip" "$ASSETS_HOME"
cp -r "/Library/Developer/XcodeServer/IntegrationAssets/$XCS_BOT_ID-$XCS_BOT_NAME/$XCS_INTEGRATION_NUMBER/$XCS_PRODUCT" "$ASSETS_HOME"
cd "$ASSETS_HOME"
unzip Archive.xcarchive.zip