Skip to content

This GitHub repository is your essential guide to mastering Jenkins. It includes step-by-step tutorials, sample pipelines, and best practices for continuous integration and continuous delivery (CI/CD).

License

Notifications You must be signed in to change notification settings

savanarohit/Jenkins

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jenkins Documentation

What is Jenkins

An open-source automation server that enables developers around the world to reliably build, test, and deploy their software

Jenkins Installation

Cloud           - AWS
Instance Type   - t2.medium
CPU Cores       - 2
Memory          - 4 GB
Storage         - 10 GB
OS              - Ubuntu 22.02 

Install Java

sudo apt update && sudo apt install openjdk-11-jre

Check the Java version

java -version

openjdk version "11.0.12" 2021-07-20
OpenJDK Runtime Environment (build 11.0.12+7-post-Debian-2)
OpenJDK 64-Bit Server VM (build 11.0.12+7-post-Debian-2, mixed mode, sharing)

Install Jenkins

curl -fsSL https://pkg.jenkins.io/debian-stable/jenkins.io-2023.key | sudo tee \
/usr/share/keyrings/jenkins-keyring.asc > /dev/null

echo deb [signed-by=/usr/share/keyrings/jenkins-keyring.asc] \
https://pkg.jenkins.io/debian-stable binary/ | sudo tee \
/etc/apt/sources.list.d/jenkins.list > /dev/null

sudo apt-get update && sudo apt-get install jenkins

Start Jenkins

sudo systemctl start jenkins

Check Status of Jenkins

sudo systemctl status jenkins

Enable Jenkins service to start at boot time

sudo systemctl enable jenkins

Firewall Exception

YOURPORT=8080
PERM="--permanent"
SERV="$PERM --service=jenkins"

firewall-cmd $PERM --new-service=jenkins
firewall-cmd $SERV --set-short="Jenkins ports"
firewall-cmd $SERV --set-description="Jenkins port exceptions"
firewall-cmd $SERV --add-port=$YOURPORT/tcp
firewall-cmd $PERM --add-service=jenkins
firewall-cmd --zone=public --add-service=http --permanent
firewall-cmd --reload

Login into Jenkins Web Console

Type https://localhost:8080 in your Browser if any exceptions accept them and proceed

Unlock Jenkins Password using the below command

sudo cat /var/lib/jenkins/secrets/initialAdminPassword

Jenkins plugins (DevOps)

  1. Kubernetes
  2. Swarm
  3. Amazon Elastic Container Service
  4. Azure Container Service
  5. Dashboard View
  6. View Job Filters
  7. Folders
  8. Jira
  9. Performance
  10. Performance Publisher
  11. Job DSL
  12. Build Pipeline
  13. Multijob
  14. Pipeline
  15. Monitoring
  16. Disk-usage
  17. Metrics
  18. Mailer
  19. SCM API
  20. Git
  21. GitHub Integration
  22. Subversion
  23. Test Results Analyzer
  24. bootstrapped-multi-test-results-report
  25. JUnit
  26. Publish Over SSH

Jenkins Pipeline Stages

  1. Build
  2. Test: Integration & Quality
  3. Test: Functional
  4. Test: Load & Security
  5. Approval
  6. Deploy: Prod

Jenkins Descriptive Pipelines

  1. Pipeline
  2. Github
  3. Github Poll SCM
  4. MultiBranch
  5. Parameterized
  6. Variable
  7. Multiple_Jenkinsfile
  8. Delay
  9. Groovy
  10. Job_from_job
  11. Pass_Parameter_between_Job
  12. Multiple_Bash_Command

About

This GitHub repository is your essential guide to mastering Jenkins. It includes step-by-step tutorials, sample pipelines, and best practices for continuous integration and continuous delivery (CI/CD).

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published