[ad_1]
If you’re a software developer, or familiar with coding you may already be acquainted with Jenkins.
This article shares the steps on how to install Jenkins on windows. But first, what is Jenkins about?
Jenkins is an accessible server for automation that programmers can use to build, test, and distribute applications and it is also used to carry out CI/CD workflows which are called pipelines.
Windows, Linux, Unix, and macOS are just a few of the platforms it is accessible on.
Jenkins, which is a Java application, offers several plugins that can automate practically all infrastructure tasks.
Due to this extensive range of features that Jenkins offers in the form of plugins, its popularity has significantly expanded among developers.
In this article, we will not only discuss how to install Jenkins but also share how to unlock Jenkins and customize its usage.
Now, we’re going to go straight to the point as the next section shows how to install Jenkins on windows.
Read Also: How To Delete A Tsu Account In Simple Steps
How to Install Jenkins For Windows
Installing OpenJDK is a prerequisite for setting Jenkins for Windows in the first place.
Jenkins only supports JDK8 as of right now. Jenkins can be installed after Java has started executing.
To Install Jenkins, just adhere to the guidelines listed below.
- Get the most recent Jenkins package for Windows which is currently in version 2.
- After downloading, it will launch a wizard on your computer screen. To launch the Jenkins installation, click “Next.”
- If you want to install your Jenkins in a different folder, click the “Change…” button.
- Type your service login information. The second choice, “Run service as local or domain user,” is advised because it is safer.
- You must input the domain login and password in order to begin the Jenkins service using this option.
- To verify your domain credentials, click the “Test Credentials” button. This will make the “Next” button available. Then, when the “Next” button shows, simply tap it.
- Type in the port where Jenkins will run. To check if the port is free, click the “Test Port” button.
- Click the “Next” button after selecting the Java home directory.
- Choose any additional services that must be installed alongside Jenkins and press the “Next” button.
- To begin the installation process, click the “Install” button.
- With this, the installation process will begin.
- To finish the installation process, click “Finish” when the installation is done.
Now that the installation procedure is complete, you just need to unblock and customize Jenkins to get started with Jenkins on Windows.
The next section discusses how to unblock Jenkins.
Read Also: How to Delete A Jeevansathi Account
How to Unblock Jenkins After installation
Jenkins must first be unblocked after installation is complete in order for you to configure and use it.
Note: A hidden directory could be referenced on the Unblock Jenkins page. Be sure to enable displaying hidden objects in case you can’t find the directory.
The steps you must take to unblock Jenkins are listed below:
1. Use the following address to direct your web browser to the port number you chose during installation: http://localhost:[port number]
2. Next, you will be taken to a local Jenkins page automatically, or you can type http://localhost:8080 directly into a browser.
3. Replicate the password from the initial admin password file to unlock Jenkins. You should be able to locate this file in the Jenkins installation path especially if a custom path was specified.
4. To fill out the Administrator password field, copy the initial admin password file’s content and paste it there. Click the Continue button after that.
Now we’ve seen how to unlock Jenkins, the next section discusses how to customize it for use.
How To Customize Jenkins
You need to customize and set up the Jenkins environment after you unlock it.
Depending on your needs, you can install either the recommended plugins or a subset of them.
Below are the steps to be followed to achieve this:
1. To have Jenkins automatically download the most frequently used plugins, click the Install recommended plugins button.
Note: If you’re an experienced user, you may select which plugins to install by clicking the Select plugins to install option.
2. After Jenkins has finished installing the plugins, fill out the form on the Create First Admin User page with the necessary data. To keep going, click Save and Continue.
3. Verify the port number Jenkins should use on the Instance Configuration page, then click Save and Finish to complete the initial customization.
4. To access the Jenkins dashboard, click the Start using Jenkins button.
5. To create your first Jenkins software project, click Create a job on the Jenkins dashboard.
How To Add User Credentials for the Jenkins administrator
You don’t need to provide user login information to use the Run service as the LocalSystem option.
Jenkins is instead given unrestricted access to your system and services. It should be noted that this alternative is less secure and is not advised.
Note: The user must have the necessary permissions to log on as a service when choosing the Run service as a local or domain user.
An error notice claiming that the account cannot be validated shows if this is not the case.
Follow these instructions to fix the problem if this error occurs:
- Ensure that you are logged in as an administrative user.
- Open the Local Security Policy tab in the Administrative Tools.
- Broaden Local Policy in the left-hand panel of the Local Security Policy box, then choose User Rights Assignment.
- Right-click Log on as service in the right-side panel and choose Properties.
- Next, tap on the Add User or Group button.
- Add the new user by using the Select Users or Groups dialogue, then click OK.
- To save all changes, you should click the OK button that can be seen in the Properties window.
Conclusion
I’m certain that at this point, you already know how to install Jenkins on windows and will soon be undertaking your first Jenkins project.
If you have further questions, please do share them in the comments section.
FAQ
Can I Install Jenkins Locally?
If you want to operate the Jenkins service as a local or domain user, enter the domain user name and password, click Test Credentials to verify your domain credentials, and then click Next.
What Are The Prerequisites To Install Jenkins on Windows?
There are a few requirements for Jenkins to be installed on your computer before you can install Jenkins in your Windows system.
Hardware specifications Jenkins must be installed on a computer or laptop with at least 256 MB of RAM.
For Jenkins, you must have at least 1 GB of free space on your hard drive.
How to Install Jenkins On Windows Using Command prompt?
Open the download directory in a terminal or command prompt window. Run the java -jar Jenkins. war command.
Visit http://localhost:8080 and wait for the page that says “Unlock Jenkins” to display.
[ad_2]
Source link