Xcode server v3.2.1 copy assets after integration

Could not find decent documentation on how to write bot scripts, and Xcode Server has changed a bit in terms of folders and permissions. Basically I just want to copy my .ipa and dSYM to another folder, but when the script runs it:

cp: / Library / Developer / XcodeServer / IntegrationAssets / 4f7c7e65532389e2a741d29758466c18- [USER NAME here] /15/Archive.xcarchive.zip: There is no such file or directory

If I made a copy after the integration was completed (not in the script), it works fine. So my question is, how / when do I copy assets into the "after integration" script bot? When are the files ready?

thank

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
+4
1

${XCS_OUTPUT_DIR} , IPA.

"$ {XCS_OUTPUT_DIR}/${XCS_PRODUCT}" ipa.

+1

All Articles