Save some string data between Teamcity builds and restore them as environment variables.
Save
teamcity-keykeeper key:save --name="some_env_var_name" --value="some_value";
teamcity-keykeeper key:save --name="some_env_var_name2" --value="some_value2";
Restore
teamcity-keykeeper key:restore --all;
##teamcity[setParameter name='env.SOME_ENV_VAR_NAME' value='some_value']
##teamcity[setParameter name='env.SOME_ENV_VAR_NAME2' value='some_value2']
Get clean
teamcity-keykeeper key:get --name="some_env_var_name";
some_value
MIT