How to Configure Jenkins

How to Configure reverse Proxy for Jenkins

  • Head to “Manage Jenkins” ->” Configure Global Security” -> “Crumbs” and check “Enable Proxy Compatibility”.
jenkins configure global security

Figure-Jenkins Configure Global Security

Configure Jenkins to work with a proxy server

  • Open Internet Explorer
  • Go to Internet Options  and select the Connections tab
  • Select LAN settings
  • Enter the Proxy server host name and port in the configuration below
Jenkins - Enter proxy

Figure-Enter proxy

This works great outside of Jenkins (i.e. using Visual Studio).   If we implement the same solution on the Jenkins server, and run a job it completely ignores the proxy settings in IE. To fix this follow below steps.

  • Log on to your Jenkins GUI
  • Select Manage Jenkins
Jenkins - Select Manage Jenkins

Figure-Select Manage Jenkins

  • Select Manage Plugins
Jenkins - Select Manage plugins

Figure-Select Manage plugins

  • Select the Advanced tab
  • Enter the proxy server host name and port number
Jenkins - Proxy Configuration

Figure-Proxy Configuration

  • Click on the Advanced…button and validate the test URL. If all works, then submit to save.
  • Restart Jenkins, verity that the proxy settings are still set, and perform a work-space load with a Jenkins job to test

Configure SMTP Server in Jenkins

  • Log on to your Jenkins GUI
  • Select Manage Jenkins
Jenkins - Select Manage Jenkins

Figure-Select Manage Jenkins

  • Select Configure System
Jenkins - Configure System

Figure-Configure System

  • Enter the SMTP server name under ‘Email Notification’. Click the ‘Advanced’ button and then click the checkbox next to the ‘Use SMTP Authentication’ option. Now, set the following fields.
    • SMTP server name:
    • User name:
    • Password: 123456
    • Use SSL : Checked
    • SMTP Port: 456
Jenkins - Email Notification

Figure-Email Notification Configuration

  • Go to the home page and click on a created job, like EBS-Evolution. Then, click the ‘Configure’ option.
Jenkins - Home


Select your project from the list and click Configure –

Jenkins - Project Configuration

Figure-Project Configuration

  • Click the ‘Add post-build action’ drop-down
  • Select the ‘E-mail Notification’ value.
Jenkins - Email Notification for Post-Build

Figure-Email Notification for Post-Build

  • Click the ‘Save’ button.
  • Go to the home page and click on the job, like Test-Evolution
  • Click the ‘Build now’ link and check the email id after the job execution.

Create New Jobs in Jenkins

Jenkins - Create New Job

Figure-Create New Job

  • Click on “New Item” link
  • Fill the required information and then select “Freestyle project” option and click “OK”
Jenkins - Free Style Project

Figure-Free Style Project

  • Below screen get appear after click on “OK”. Setup the configuration for the recently created job
Jenkins - Configuration for Job

Figure-Configuration for Job                                       

  • Click on “Build Now” button
Jenkins - Build Now

Figure-Build Now

  • Below screen shows Build History
Jenkins - Build History

Figure-Build History

Create Pipeline for Jenkins

  • Select Pipeline type with valid View Name
Jenkins - Create Pipeline

Figure-Create Pipeline

  • After Selecting below scree will appears
Jenkins - Pipeline look alike

Figure-Pipeline Window

  • Click on “Edit View” option on dashboard
Jenkins - Edit Pipeline

Figure-Edit Pipeline

  • Pipeline Edit screen
Jenkins - Pipeline Edit Screent

Figure-Pipeline Edit Screent

  • Using “View Full-screen” Option on dashboard
Jenkins - Build Screen with Full View

Figure-Jenkins Build Screen with Full View

  • Another View of Pipeline
Jenkins- Another View for Build Screen

Figure-Another View for Build Screen

Thank you for reading, there will more on Jenkins which we will learn in next chapter.

Leave a Reply

Your e-mail address will not be published. Required fields are marked *