Skip to content

Instantly share code, notes, and snippets.

@quellish
Created October 28, 2014 03:03
Show Gist options
  • Save quellish/f279f7b00c1bfd343468 to your computer and use it in GitHub Desktop.
Save quellish/f279f7b00c1bfd343468 to your computer and use it in GitHub Desktop.
Xcode CI script variables

Variable

Type

Description

Example

XCS_BOT_NAME

String

The name of this bot

MyApp Bot

XCS

Number

?

1

XCS_SOURCE_DIR

Path

The path to the source directory for this integration

/Library/Developer/XcodeServer/Integrations/Caches/$XCS_BOT_ID/Source

XCS_INTEGRATION_RESULT

String

The result of this integration

succeeded

XCS_TEST_FAILURE_COUNT

Number

The number of test failures in this integration

0

XCS_INTEGRATION_ID

String

The ID of this integration

2

XCS_BOT_TINY_ID

String

The short ID of this bot

BA7B030

XCS_ARCHIVE

Path

Path to the archive generated by this integration

/Library/Developer/XcodeServer/Integrations/Integration-$XCS_INTEGRATION_ID/Archive.xcarchive

XCS_TEST_FAILURE_CHANGE

Number

The amount of test failure changes between this and the previous integration

0

XCS_INTEGRATION_TINY_ID

String

The short ID of this integration

847C2A7

XCS_BOT_ID

String

The ID of this bot

4faee640aba92fc40c53c58c0a5ccadd

XCS_XCODEBUILD_LOG

Path

Path to the build log

/Library/Developer/XcodeServer/Integrations/Integration-$XCS_INTEGRATION_ID/build.log

XCS_PRODUCT

String

The name of the build product

MyApp.ipa

XCS_ERROR_COUNT

Number

The number of errors in this integration

0

XCS_ANALYZER_WARNING_COUNT

Number

The number of static analyzer warnings in this integration

0

XCS_TESTS_CHANGE

Number

The amount of test changes between this and the previous integration

0

XCS_ERROR_CHANGE

Number

The amount of error changes between this and the previous integration

0

XCS_ANALYZER_WARNING_CHANGE

Number

The amount of static analyzer warnings changed between this and the previous integration

0

XCS_WARNING_COUNT

Number

The number of warnings in this integration

0

XCS_TESTS_COUNT

Number

The number of tests in this integration

2

XCS_OUTPUT_DIR

Path

Directory for build output. This will be removed after your integration completes.

/Library/Developer/XcodeServer/Integrations/Integration-$XCS_INTEGRATION_ID

XCS_INTEGRATION_NUMBER

Number

The integration number for this bot

2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment