DevOps Classroom Series 17/Dec/2019

Jenkins Terms

  • Project:
    • Set of Steps to be scheduled multiple times.
    • Internally every project stored as XML file.
    • This file gets stored in Jenkins-Home directory
  • Build :
    • Project when executed is generally considered to be build.
    • Each build for a project will have unique running number.
  • Master:
    • Jenkins Server is Master
  • Node:
    • All the other server which are added to Jenkins Master are nodes.
  • JENKINS HOME:
    • All the information about jenkins is stored in this directory
    • The default path is ~/.jenkins
    • In specific linux installations path can be different.
    • To know about Jenkins Home, Jenkins uses an environment Variable called JENKINS_HOME

Simulating any Jenkins Job Execution

  • Login into the Jenkins master
  • Become Root user
sudo -i
  • Switch to jenkins user
su jenkins
  • Execute commands
whoami
pwd
sudo apt-get update

Exercise

  • Create a simple Free Style Jenkins Project to display environmental variables, Username and list the contents of home directory
set
whoami
ls ~

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

About continuous learner

devops & cloud enthusiastic learner