This repository has been archived by the owner on Dec 31, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
Launching a Jenkins Environment
Paul Duvall edited this page Mar 18, 2014
·
7 revisions
- You have the AWS CLI tool installed and configured. See the Prereqs subsection of https://github.com/stelligent/honolulu_answers
In order to update/replace the Jenkins pipeline for the Honolulu Answers application, follow these steps:
- Checkout the Jenkins Cookbooks Repo:
git clone https://github.com/stelligent/honolulu_jenkins_cookbooks.git
- Navigate into the Jenkins cookbooks repository that you just cloned in step #1:
cd honolulu_jenkins_cookbooks
- Create a new jenkins environment:
aws cloudformation create-stack --stack-name Honolulu-Jenkins --template-body "`cat jenkins.template`" --disable-rollback --timeout-in-minutes 60
NOTE: To prevent OpsWorks errors, we've defaulted the instance size toc3.large
. You can find the CloudFormation code at jenkins.template. - After about 20 minutes, log into the OpsWorks console
- 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.
- Click on Instances within the OpsWorks stack you selected.
- 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.
- Copy the Public IP from the OpsWorks instance. The Public IP should look something like
54.185.193.19
- Go to the Route53 Console
- 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. - Click the Go To Record Sets button.
- 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. - Enter your subdomain name.
- Choose the A - IPv4 Address from the dropdown
- Change the Value to the Public IP you copied in step #8
- If it's an existing record set, click the Save Record Set button. If it's a new record set, click the Create button.