在 AWS EC2 Instance 建立 Jenkins 服務

Install Jenkins

sudo wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins.io/redhat-stable/jenkins.repo
sudo rpm --import http://pkg.jenkins.io/redhat-stable/jenkins.io.key
sudo yum install jenkins

注意事項

EC2

  1. security group 開 8080 port
  2. 測試 curl http://localhost:8080

基本指令

service jenkins start
service jenkins stop
service jenkins status

Other

重設Jenkins admin 密碼
https://wiki.jenkins-ci.org/display/JENKINS/Disable+security