Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Steps to be taken care during Jenkins configuration

  • Install Java

    1.8

    17

    • Refer following web page to get detailed steps to install Java 1.8 17 on Linux.

Automatics Orchestration Setup#JDK1.8Setup#JDK17

  • Install Jenkins

Follow below steps to install and configure Jenkins in Linux

...

"sudo systemctl enable jenkins"

  • Setting Up Jenkins

    • To set up your new Jenkins installation, open your browser and type your domain or IP address followed by port 8080:

"http://your_ip_or_domain:8080"

...

    • Copy the password from your terminal, paste it into the Administrator password field and click Continue.
    • On the next screen, you will be asked whether you want to install the suggested plugins or to select specific plugins. Click on the Install suggested plugins box, and the installation process will start immediately. 

...

    • Once the installation is complete, you will be prompted to set up the first administrative user. Fill out all required information and click Save and Continue.
    • On the next page, you will be asked to set the URL for the Jenkins instance. The URL field will be populated with an automatically generated URL.
    • To complete the setup confirm the URL by clicking on the Save and Finish button.



  • Follow below steps to Disable CSRF protection by setting system property 'hudson.security.csrf.GlobalCrumbIssuerConfiguration.DISABLE_CSRF_PROTECTION' set to true. More details available at https://www.jenkins.io/doc/book/security/csrf-protection/.

    • To disable CSRF it can be done with groovy  , Navigate to  "Manage Jenkins > Script Console " in Jenkins.
    • Enter the list of commands shown in the below screenshot and click on "Run".

Image Added

  • To view the generated HTML logs by the testcases properly please follow the below steps to see the generated HTML logs by modifying, the CSP header sent by Jenkins by setting the Java System property.More details available at https://www.jenkins.io/doc/book/security/configuring-content-security-policy/ 
    • To unset the header please Navigate to  "Manage Jenkins > Script Console " in Jenkins.
    • Please use the property "System.setProperty("hudson.model.DirectoryBrowserSupport.CSP", "")" in Jenkins.

Image Added         

  • Install Maven 3

Refer following webpage to setup Maven 3 on Linux.

...