Unity -batchmode -quit -projectPath <path> -executeMethod Polis.Core.BuildTool.CommandLineBuild.Build -platformConfig <asset> -userConfig TeamCityUserConfig-appConfig <asset>, -cleanBuild (cleans the Addressables content and Unity's build cache before the build), -vBuild <number> (the build number)-contentUpdate <build> - a content update of a shipped build instead of a player, e.g. -contentUpdate 1.7.2.35. It gets the shipped build's data and content from ServiceHub (ServiceHubContentSource) and builds only downloadable contentv* git tags (GitTagVersionAction). A commit with a tag gets its version, also on reruns and other platforms. A commit without one gets the next patch, TeamCity tags it and pushes the tag. -vMaj, -vMin and -vPatch are ignored with a warning1.8.2.35, and <shipped build>-update for content updatesTeamCityUserConfig (content kit Settings/Build) - build path and settings for the agent, with Git Tag Version (tags and pushes new versions), App Build Info, Publish To ServiceHub, Graphics States From ServiceHub, the archiver and the artifacts publisher. Its Content Updates preference takes shipped builds from ServiceHub (ServiceHub Content Source)TeamcityArtifactsPublisher (build action) - publishes the player (APK, or the zipped standalone build) as a TeamCity artifact. Android builds also publish the symbols.zip Unity writes when the platform config asks for onecontent.json and the remote content next to the player, published as the AddressablesContent artifact. Content updates and content publishing need it, without it a player build publishes only its app buildPublishToServiceHubAction - after the artifacts publisher, writes what ServiceHub gets of the build to servicehub-publish.json next to the player and puts its path in POLIS_SERVICEHUB_PUBLISH. The Unity step sends no files
content.json). Each names its folder among the build's artifacts. A content update has only its contentartifacts/%teamcity.project.id%/%system.teamcity.buildConfName%/%teamcity.build.id%). Nothing is sent from the agent: a file the hub can't import fails the step. Lost connections and hub restarts are retriedGraphicsStatesFromServiceHubAction - puts the newest published PSO recordings for the platform and app version from ServiceHub (asked with the app secret) into the build as resources, removed again after the build. Without them the build keeps its own recordingsTeamCityServiceMessages (Polis.Core.NativeUtils.TeamCity) - writes service messages to the log, so TeamCity shows build steps, warnings and failures. Each build state and each script compilation gets its own folded blockPOLIS_GIT_TOKEN, POLIS_RELEASE_UPLOAD_KEY and POLIS_SERVICE_URL are parameters of the root project| Variable | Used for |
|---|---|
POLIS_GIT_TOKEN |
GitHub token for fetching and pushing tags over HTTPS. Git reads it from the process environment, it never lands on the command line or on disk |
POLIS_RELEASE_UPLOAD_KEY |
Release upload key for the publish step and content updates |
POLIS_APP_SECRET |
App secret for the publish file and PSO downloads, a global upload key needs it to know its app. Not set in TeamCity: the secret in ServiceHubSettings goes along when the hub is the one set there. The publish step reads it only when the publish file has no secret |
POLIS_SERVICE_URL |
ServiceHub address for the build tools, e.g. a test hub. Else the one in ServiceHubSettings |
POLIS_SERVICEHUB_PUBLISH |
Set by the Unity step: the path of servicehub-publish.json for the publish step |
KEYSTORE_PATH, KEYSTORE_ALIAS, KEYSTORE_STOREPASS, KEYSTORE_KEYPASS |
Android signing, in place of the user config's keystore, the app config's alias and the OS credential store |
IOS_TEAM_ID |
iOS signing team |