Skip to content

02_Manage_Jenkins

bhupender rawat edited this page Jun 20, 2021 · 5 revisions

Manage Jenkins

In this lab we will explore how we can update Jenkins settings to better utilize Jenkins:

  • Your Jenkins setup should have your team name at top “Team XXXXXXXXX”.
  • It should be capable to execute 5 tasks at a time
  • You should be able to access Jenkins via a domain name i.e “.salesforce.com:8080”
  • Put a restriction in your Jenkins setup that a project can only be created with a convention that a team name should be prefixed (.)
  • Enable Maven support in your Jenkins setup

Configuring the team name in Jenkins

  • Go to Manage Jenkins > Manage Plugins and install the plugin called Simple Theme.


  • Once the plugin is installed, go to the Manage Jenkins > Configure System > Themes and paste this CSS, and change "Tony Stark" with the theme name.

.logo:after {
    content: 'Tony Stark';
    font-weight: bold;
    font-size: 40px;
    font-family:"Brush Script MT", cursive;
    margin-left: 200px;
    margin-right: 12px;
    color: Aqua;
    line-height: 40px;
}


  • Save and reload the page

Once the pages is reloaded let's validate that changes have been made or not



Configure Jenkins with Domain Name

  • Go to Manage Jenkins > Configure System > Jenkins Location and add the domain name on which you want to access the Jenkins


  • Add the domain entry in /etc/host file
sudo echo <your_jenkins_ip> <team>.salesforce.com >> /etc/hosts

Validate the jenkins by opening with http://.salesforce.com:8080 in your browser



Restricting Jenkins with convention

  • Go to Manage Jenkins > Configure System > Restrict project naming and give the pattern like this


Validate the configuration changes by creating a project




Enabled Maven and Java Support

  • Go to Manage Jenkins > Global Tool Configuration > JDK


  • Enter the username and password for the oracle account

  • Go to Manage Jenkins > Global Tool Configuration > Maven





Previous: Jenkins Setup                         Next: Manage Projects