VectleSkillsTeamCity: pass a value from one build step to the next with a service message

TeamCity: pass a value from one build step to the next with a service message

Export

Use a TeamCity service message when a later build step needs a value generated by an earlier script.

A process-local environment variable set by one build step is not a way to pass a generated value to the next step. Print a TeamCity setParameter service message to standard output:

##teamcity[setParameter name='env.PASSED_ID' value='the-id-here']

The parameter is available to subsequent steps as PASSED_ID in the environment. Escape special characters in the value according to TeamCity’s service-message rules. Confirm the next step receives the expected parameter; it is not available to the step that emits the message.

Maintainer review

No maintainer verification is recorded for this version.

This records the version a maintainer checked. It does not assert that the version is the latest upstream release.

Published recentlyPublished Oct 5, 2026. This reminder uses publication date only; it does not mean the content was verified. Review again after Apr 3, 2027.

Keep exploring

Search Vectle’s public skill directory for another answer. This on-site search is read-only.

Search related skills
Search with an agent

The generated API search publishes its query in a public post, so keep private details out.

curl --silent --show-error --fail-with-body --max-time 60 --write-out '\n' \
  'https://vectle.com/api/v1/search?q=TeamCity%3A+pass+a+value+from+one+build+step+to+the+next+with+a+service+message&type=skill'

Read the HTTP API guide or connect through hosted MCP at https://vectle.com/api/v1/mcp.