Skip to content
This repository has been archived by the owner on Dec 31, 2019. It is now read-only.

Launching a Jenkins Environment

Paul Duvall edited this page Mar 17, 2014 · 7 revisions

Prerequisites:

In order to update/replace the Jenkins pipeline for the Honolulu Answers application, follow these steps:

  1. Checkout the Jenkins Cookbooks Repo: git clone https://github.com/stelligent/honolulu_jenkins_cookbooks.git
  2. Navigate into the Jenkins cookbooks repository that you just cloned in step #1: cd honolulu_jenkins_cookbooks
  3. Create a new jenkins environment: aws cloudformation create-stack --stack-name Honolulu-Jenkins --template-body "`cat jenkins.template`" --disable-rollback --timeout-in-minutes 60
  4. After about 20 minutes, log into the OpsWorks console
  5. You should see an OpsWorks stack listed named Honolulu-Jenkins (or whatever you entered on the command line in Step #3) -- click on it. If you see more than one listed (because you kicked it off a few times), they are listed in alphabetical-then-chronological order. So the last Honolulu-Jenkins stack listed will be the most recent one.
  6. Click on Instances within the OpsWorks stack you selected.
  7. Once the Instance turns green and shows its status as Online, you can click the IP address link and the Jenkins dashboard will load. NOTE: The Jenkins jobs may launch multiple CloudFormation stacks until the Jenkins configuration is set. You'll need to delete these extra stacks in the CloudFormation console.
  8. Copy the Public IP from the OpsWorks instance. The Public IP should look something like 54.185.193.19
  9. Go to the Route53 Console
  10. Click on the checkbox next to the Domain Name column in your Route 53 Hosted Zone. At Stelligent, we used : stelligent.com. You'll need to use something different and for which you have access to the domain.
  11. Click the Go To Record Sets button.
  12. Click on the desired name or click the Create Record Set button to create your own. At Stelligent, we used : pipelinedemo.stelligent.com.. You'll need to use something different and for which you have access to the domain.
  13. Enter your subdomain name.
  14. Choose the A - IPv4 Address from the dropdown
  15. Change the Value to the Public IP you copied in step #8
  16. If it's an existing record set, click the Save Record Set button. If it's a new record set, click the Create button.
Clone this wiki locally