Xcode Server should provide after integration triggers the location of built products
| Originator: | sebskuse | ||
| Number: | rdar://24145888 | Date Originated: | 12-Jan-2016 08:59 AM |
| Status: | Open | Resolved: | |
| Product: | Developer Tools | Product Version: | Xcode 7.2 (7C68), OSX Server 5.0.15 (15S4033) |
| Classification: | Other Bug | Reproducible: | Always |
Summary:
In previous versions of Xcode Server (with Xcode 6) prior to App Thinning, build scripts could access the built product by using the environment variables “${XCS_OUTPUT_DIR}/${XCS_PRODUCT}”. With App Thinning, multiple build products are generated for the different classes of device, so the “product” is now a directory of files.
Xcode Server should provide us with environment variables that allow post-build scripts to locate these files (for example for uploading to an enterprise distribution service).
Looking at Xcode Server’s directory structure, build products look like they should appear in:
“/Library/Developer/XcodeServer/IntegrationAssets/${XCS_BOT_ID}-${XCS_BOT_NAME}/${XCS_INTEGRATION_NUMBER}/“, however at the time the build script runs, they reside in “${XCS_OUTPUT_DIR}/ExportedProduct/Apps/“, and are then later moved to the IntegrationAssets directory.
Steps to Reproduce:
Set up an after integration trigger to access the built products directory without hard coding directory names.
Expected Results:
The trigger should be provided with enough information to locate the file(s), as per Xcode 6.
Actual Results:
Locating the files requires us to hardcode undocumented folder structures into our triggers.
Regression:
This happens on Xcode Server 7.2, previous versions of Xcode Server provided triggers with adequate environment variables.
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!