Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
#!/usr/bin/env bash
source tc-props.bash
echo "Running on $agent_name"
echo "Deploying $org_app_version to $org_deploy_server..."
# ...
#!/usr/bin/env bash
# Dots are replaced by underscores: -> agent_name
echo "TeamCity properties file could not be found. Not running within TeamCity?"
exit 1
while IFS='=' read -r key value; do
[[ -n $key ]] && printf -v ${key//./_} "${value%% }"
done <<< "`cat "$TEAMCITY_BUILD_PROPERTIES_FILE" | grep -v '^#'`"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.