...
Steps to be taken care during Jenkins configuration
Install Java
1.817
- Refer following web page to get detailed steps to install Java 1.8 17 on Linux.
Automatics Orchestration Setup#JDK1.8Setup#JDK17
Follow below steps to install and configure Jenkins in Linux
...
"sudo systemctl enable jenkins
"
"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
Refer following webpage to setup Maven 3 on Linux.
...