TABLE OF CONTENTS
2. Configuring the Environmental Variables in Jenkins
1. Viewing the Dashboard
Perform the following:
- Navigate to http://localhost:8080/login?from=%2F.
Note that note the preceding URL may vary depending on your Jenkins installation when you choose to log in. For more information, see Jenkins Documentation. - Login with the admin credentials.
- In the Dashboard, select the scripts generated, as shown:
- Select the Script Execution dropdown list to delete the project if there are any projects, as shown:
- Click Yes to delete the project.
2. Configuring the Environmental Variables in Jenkins
Perform the following:
- Navigate to the Dashboard > select Manage Jenkins > Tools.
- Select JDK Installations dropdown list.
- Select Maven Installations dropdown list, enter the details as shown and save the details. Path may vary depending on your installation directory.
3. Creating a Job
Perform the following:
- In the Dashboard screen, click Create a Job Plus icon and enter an item name.
- Select Freestyle project option and click OK
- In the Configure tab, select Advance Settings dropdown list.
- Select Use custom workspace option.
- Enter the Directory path.
- Click Apply.
- Click Save.
- Click Configure.
- Click Add build step dropdown list.
- Click Invoke Top-level Maven projects option, as shown:
- Select Maven Version dropdown list.
- Enter the goals and click Apply.
- Click Save.
- Click Build Now.
- Select the Project from the Build History, as shown:
- Click Console Output.
- Console Output contains:
- Build Information: Details about the build number, job name, and build status. For example, success, failure test results.
Log Messages: Output from build steps, including commands executed, and any log messages from scripts or applications.
Error Messages: Warnings and error messages if something went wrong during the build or testing process.
Environment Variables: Information about the environment in which the build is running, such as variable values.
Plugin Outputs: Messages from any installed plugins that are executing during the build process.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article