Switch branches/tags
Nothing to show
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
README.md
cf-jenkins-main-102.yml

README.md

Table of Contents

Requirements

  1. Finish Scenario-101, create a jenkins user by code.
  2. Anonymous user can't open the jenkins. Only login user can.
  3. When Jenkins is down, get alerts
  4. Make sure Jenkins GUI changes can be seamlessly tracked in git repo.

Procedures

Launch

  • Use CF to setup the env
export STACK_NAME="aws-jenkins"
export TMP_FILE="file://cf-jenkins-main-102.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