Jenkins Create Views

Ticker

6/recent/ticker-posts

Jenkins Create Views

 Question : The DevOps team of xFusionCorp Industries is planning to create a number of Jenkins jobs for different tasks. So to easily manage the jobs within Jenkins UI they decided to create different views for all Jenkins job based on usage/nature of these jobs, - for example devops-crons view for all cron jobs. Based on the requirements shared below please perform the below mentioned task:

Click on the + button in the top left corner and select option Select port to view on Host 1, enter port 8081 and click on Display Port. You should be able to access the Jenkins login page. Login using username theadmin and Adm!n321 password.

Create a Jenkins job which should be named devops-pipeline-job.

Configure this job to run a simple bash command to echo hello world!!.

Create a view named devops-crons (should be a List View) and make sure devops-pipeline-job and devops-cron-job (which is already present on Jenkins) jobs are listed under this new view.

Schedule this newly create job to build periodically at every minute i.e '* * * * *' (please make sure to use the cron expression exactly same how it is mentioned here)

Make sure the job builds successfully.

Note:

You might need to install some plugins and restart Jenkins service. So, we recommend clicking on Restart Jenkins when installation is complete and no jobs are running on plugin installation/update page i.e update centre. Also, Jenkins UI sometimes gets stuck when Jenkins service restarts in the back end. In this case please make sure to refresh the UI page.

For these kind of scenarios requiring changes to be done in a web UI, please take screenshots so that you can share it with us for review in case your task is marked incomplete. You may also consider using a screen recording software such as loom.com to record and share your work.

This task is based on web UI, you can refer below Video Solution for better understanding 

Solution: 

1. Click on the + button in the top left corner and select option Select port to view on Host 1, enter port 8081 and click on Display Port. You should be able to access the Jenkins login page. Login using username theadmin and Adm!n321 password

2.  Create a Scheduled Job as per the task 



 3. kindly go through the below video for further configuration

Happy Learning!!!!


Apart from this if you need more clarity,  I have made a  tutorial video on this , 

please go through and share your comments. Like and share the knowledge



Post a Comment

0 Comments

Latest Posts

KodeKloud Kubernetes Security CKS  Lab Challenge 4 |  Audit-policy | Install & configure falco utility | Inspect the API server audit logs and identify the user