Forked from drumadrian/Install Jenkins on AWS EC2 Instance
Created
January 29, 2021 11:43
-
-
Save undrash/4ea490b2b86a8a92ca37f900895b2aee to your computer and use it in GitHub Desktop.
Revisions
-
drumadrian created this gist
Dec 7, 2017 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,35 @@ # Install Jenkins on AWS EC2 instance # https://pkg.jenkins.io/redhat/ # https://d1.awsstatic.com/Projects/P5505030/aws-project_Jenkins-build-server.pdf # https://d1.awsstatic.com/Projects/P5505030/aws-project_Jenkins-build-server.pdf # https://gist.github.com/diegopacheco/6d69e0cfaf13d4351cfa700bb4af8172 # https://www.youtube.com/watch?v=uu5XcU4EPzQ sudo yum update sudo yum remove -y java sudo yum install java-1.8.0 sudo yum install java-1.8.0-openjdk sudo wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat/jenkins.repo sudo rpm --import https://pkg.jenkins.io/redhat/jenkins.io.key sudo yum install jenkins sudo service jenkins start sudo cat /var/lib/jenkins/secrets/initialAdminPassword # Connect to http://<your_server_public_DNS>:8080 # aws sns publish --topic-arn "arn:aws:sns:us-west-2:123123123123:MyTopic" --message "Jenkins build is starting" # Note: For HTTPS, use an Elastic Load Balancer listening with a certificate on port 8080