Created
July 20, 2014 14:10
-
-
Save anton-rudeshko/66d0f424470f09fa8a60 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
source tc-props.bash | |
echo "Running on $agent_name" | |
echo "Deploying $org_app_version to $org_deploy_server..." | |
# ... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Dots are replaced by underscores: agent.name -> agent_name | |
if [[ ! -f $TEAMCITY_BUILD_PROPERTIES_FILE ]]; then | |
echo "TeamCity properties file could not be found. Not running within TeamCity?" | |
exit 1 | |
fi | |
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