Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
42 lines (30 sloc) 2.2 KB

LinkedIn slack Github

File me tickets or star the repo.

Table of Contents

Requirements

  1. Start 1 jenkins master and 1 jenkins slave
  2. Jenkins master offload request to jenkins slave

Procedures

Launch

  • Use CF to setup the env
export STACK_NAME="aws-jenkins"
export TMP_FILE="file://cf-jenkins-main-401.yml"

[ -n "$SSH_KEY_NAME" ] || export SSH_KEY_NAME="YOUR_SSH_KEYNAME_CUSTOMIZE"
aws cloudformation create-stack --template-body "$TMP_FILE" \
    --stack-name "$STACK_NAME" --parameters \
    ParameterKey=JenkinsUser,ParameterValue=username \
    ParameterKey=JenkinsPassword,ParameterValue=mypassword \
    ParameterKey=KeyName,ParameterValue=$SSH_KEY_NAME
aws cloudformation delete-stack --stack-name "$STACK_NAME"

  • Verify Jenkins curl -I http://$server_ip:8080
You can’t perform that action at this time.