-
Notifications
You must be signed in to change notification settings - Fork 6
Install Jenkins
Valentina-Camelia Bojan edited this page Nov 1, 2019
·
3 revisions
We can easily have a containerized Jenkins using the following steps:
1. Get the latest jenkins docker image (see docs here)
$ docker pull jenkins/jenkins
2. Check your docker images
$ docker images | grep "jenkins"
jenkins/jenkins latest eda4e3b68b8b 6 days ago 553MB
3. Start the jenkins container (see docs here)
$ docker run n -p 9090:8080 -v <absolute_path_to_jenkins_home_directory):/var/jenkins_home jenkins/jenkins
4. Go to http://localhost:9090
5. Configure Jenkins
5a. Unlock Jenkins
$ cat <absolute_path_to_jenkins_home_directory)/secrets/initialAdminPassword
Put the password here:
5b. Select plugins to install
Click Select plugins to install
.
Select the following plugins to install:
- Folders
- Build Timeout
- Credentials Binding
- Timestamper
- Workspace Cleaner
- Pipeline
- GitHub Branch Source
- Pipeline: GitHub Groovy Libraries
- Pipeline: Stage View
- Git
5c. Create first admin user
Choose a new password and set an email address for your admin user. Click Save and Continue
.
5d. Skip the instance configuration (for now)
Click Save and Finish
.
5e. Start using Jenkins
You are good to go! 🍻