This file contains 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
from __future__ import print_function | |
import json, httplib, boto3 | |
def get_slack_msg(msg): | |
return get_deploy_msg(msg) if 'status' in msg else get_deploy_instance_msg(msg) | |
def get_deploy_msg(msg): | |
success = msg['status'] == 'SUCCEEDED' | |
deployment_group = msg['deploymentGroupName'] | |
deployment_id = msg['deploymentId'] |
This file contains 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 | |
sudo apt-get install software-properties-common | |
sudo apt-add-repository ppa:brightbox/ruby-ng | |
sudo apt-get update | |
sudo apt-get install python-pip | |
sudo pip install awscli | |
sudo apt-get install ruby2.0 | |
cd /home/ubuntu | |
sudo aws s3 cp s3://aws-codedeploy-us-east-1/latest/install . --region us-east-1 |
This file contains 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
New-ItemProperty -path 'HKLM:\SOFTWARE\Microsoft\.NETFramework\v4.0.30319' -name 'SchUseStrongCrypto' -value 1 -PropertyType 'DWord' -Force | Out-Null |
This file contains 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
#! /bin/sh | |
# /etc/init.d/teamcity-agent | |
# Common parameters, do not edit: | |
PATH=/sbin:/usr/sbin:/bin:/usr/bin | |
DESC="TeamCity Agent" | |
NAME=teamcity-agent | |
SCRIPTNAME=/etc/init.d/$NAME | |
# |
This file contains 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
# install dependencies | |
$ sudo apt-get update | |
# jre headless (no gui) | |
$ sudo apt-get -y install openjdk-7-jre-headless | |
# download TeamCity agent | |
$ wget http://myteamcityserver/update/buildAgent.zip | |
$ unzip buildAgent.zip -d buildAgent | |
$ cp buildAgent/conf/buildAgent.dist.properties buildAgent/conf/buildAgent.properties | |
$ chmod +x buildAgent/bin/agent.sh |