Xcode Server Environment Variable Reference
Xcode Server defines a number of built-in environment variables, which you may use in Run Script build phases that execute as part of your integration, in pre-integration triggers, and in post-integration triggers. Information provided by some of these variables is useful when making Xcode Server API requests. For information about the Xcode Server API, see Xcode Server API Reference.
Variable |
Availability |
Description |
---|---|---|
|
Xcode 7 and later |
The value of this variable is always |
|
Xcode 7 and later |
The name of the bot being run. |
|
Xcode 7 and later |
The ID of the bot. Bot IDs can be used in Xcode Server API requests. |
|
Xcode 7 and later |
A short version of a bot ID. Some Xcode Server API requests use this information. |
|
Xcode 7 and later |
The ID of the integration. Bot IDs can be used in Xcode Server API requests. |
|
Xcode 7 and later |
A short version of an integration ID. Some Xcode Server API requests use this information. |
|
Xcode 7 and later |
The number of times the integration has been run. |
|
Xcode 7 and later |
A string indicating the result of the integration, such as |
|
Xcode 7 and later |
The top-level directory containing source code repositories for Xcode Server. For the path to a repository itself, see |
|
Xcode 7 and later |
The top-level directory where resources, including logs and products, are stored during integration. |
|
Xcode 7 and later |
The derived data directory. Xcode Server builds in a non-standard location, so this directory is bot-specific. |
|
Xcode 7 and later |
The path to an output file produced by the xcodebuild commands run during the integration. |
|
Xcode 7 and later |
The path to the |
|
Xcode 7 and later |
The path to the |
|
Xcode 7 and later |
The total number of errors encountered during the integration. |
|
Xcode 7 and later |
The change in error count since the previous integration. This value can be negative. |
|
Xcode 7 and later |
The total number of warnings encountered during the integration. |
|
Xcode 7 and later |
The change in warning count since the previous integration. This value can be negative. |
|
Xcode 7 and later |
The total number of static analyzer warnings encountered during the integration. |
|
Xcode 7 and later |
The change in static analyzer warning count since the previous integration. This value can be negative. |
|
Xcode 7 and later |
The total number of test failures encountered during the integration. |
|
Xcode 7 and later |
The change in test failure count since the previous integration. This value can be negative. |
|
Xcode 7 and later |
The total number of tests performed by the integration. |
|
Xcode 7 and later |
The change in test count since the previous integration. This value can be negative. |
|
Xcode 8 and later |
The path to a property list file ( |
|
Xcode 8 and later |
The directory containing any thinned |
|
Xcode 8 and later |
The path to the source code repository for the Xcode project or workspace being integrated. For the parent directory containing the source code repositories for Xcode Server, see |
|
Xcode 8 and later |
The branch of the primary source code repository used to check out the project or workspace being integrated. Only used when checking out a branch. |
|
Xcode 8 and later |
The tag of the primary source code repository used to check out the project or workspace being integrated. Only used when checking out a tag. |
|
Xcode 8 and later |
The SVN revision number or Git hash of the commit used used to check out the project or workspace being integrated out of the primary source code repository. Only used when not checking out a branch or a tag. |
Configure Bots to Perform Continuous Integrations
Copyright © 2018 Apple Inc. All rights reserved. Terms of Use | Privacy Policy | Updated: 2016-09-13