Cloudbees Jenkins dashboard customization - jenkins

I would like to know how to customize dashboard on Jenkins under Cloudbees.
In the build execution I'm generating different reports (PMD, Cobertura, etc) but I don't know how to add/publish these reports in the dashboard.
Looking on Jenkins Wiki I've found this topic. It says:
On the create new view page, give your view a name and select the Dashboard type
The problem is that there isn't any "Dashboard type" and only the following options are available:
Groovy Script View
List View
My View
and none of these options allows to add reports.

"Free" and "Base" cloud plans provides only the essenstial jenkins plugins. Please
Refer: https://grandcentral.cloudbees.com/services/plans/dev.

Try a "List view" instead. You can make this the default view under using the /configure page.

Related

Set global description for Jenkins instance

Using Jenkins we would like to set this global description by default. We have used groovy scripts to set other global variables but I'm struggling to find what methods / classes I need to call in order to set this description for our Jenkins instance. I see many description plugins for builds but this is instead the description you see on the Jenkins homepage (not per build). In the image below I clicked "Edit description" and then typed "test" in the box and pressed save.
That's the workflow we'd like to automate using Jenkins groovy code :)
Thanks!
The description that is shown in your image, is not a global Jenkins description but rather the description of the current view you are looking on - in this case the All view. If you switch to another view it will change.
To modify this via groovy code you need to modify the description of the view by its name:
Jenkins.instance.getView('all').setDescription("My New Description")
If you do want a global message that will appear always regardless of the selected view you can use the System Message option (configurable via the Configure System menu):
This message will be displayed at the top of the Jenkins main page.
This can be useful for posting notifications to your users
To update the system message via groovy code you can use the flowing:
Jenkins.instance.setSystemMessage("My System Message")

This is about jenkins environment dashboard plugin.

I am using jenkins 1.532. I have installed Jenkins environment dashboard plugin. Created dashboard view, then I configured two of the deployment jobs to populate the dashboard with details. However, the dashboard is not displaying the details of the second deployment job. It always displays the details from first job. Has anyone tried using jenkins environment dashboard plugin with various environments and products.
I also tried to delete the dashboard view but Jenkins is not allowing the deletion also.
Can anyone help me as to why the dashboard is not picking details from second job and not allowing me to delete the dashboard view??
I had the same prob. After a bit of digging...
1) to edit (and delete! hurrah!) a Dashboard View just add a configure to the end of the URL to hit the config page
This...
http://myjenkins.local:8080/view/Dashboard1
Becomes this...
http://myjenkins.local:8080/view/Dashboard1/configure
2) the reason there were no left-hand view options in the first place
was because I'd ticked the following when setting up the View
Dashboard Portlets > Full screen view - hide standard Jenkins panels
So, edit the View as in (1) and uncheck that option to get your usual left-hand Jenkins View links back.

Determining user access in Jenkins

We would like to get a list of all jobs that a user has access to in Jenkins. This would probably be via a System Groovy Script but I am open to other methods.
We want to be able to test that all security is setup correctly and as admins we see everything so a script like this would be helpful.
This would have the same functionally as the "My View" tab in views.
Scott

Jenkins cucumber reports to show on main job's page

I run cucumber tests as part of a continuous integration for one of my products. I use the Jenkins cucumber-reports plug-in.
It all works well and is very useful!
I'd like to be able to show the reports on the main Jenkins job's page and not under an inner page in the job.
Does anyone have an idea on this?
Have you tried Dashboard View plugin? I have been using it for monthes and I used it to customize my jenkin's Homepage. It give you the ability to add any portlet into your jenkins Homepage. This is how my jenkins Homepage looks like after I started to use this Dashboard View plugin. I am not sure if it support cucumber report or not but at least you can have a try.

Is it possible to show all the submits from a Perforce depot without having to select a job?

We are currently attempting to setup an instance of Jenkins as our build system for our code base. We have multiple jobs setup (all using the same depot) to build different sections of the code.
We would now like to show the submits from all users pertaining to this depot on the main Jenkins screen rather than being able to view the change lists involved with a certain build (e.g. by selecting a certain job and then the link leading to the build information, etc...). I've looked into possible plugins and the closest one I was able to find was the "All Changes Plugin". This is exactly what we would like, but this is only visible when viewing the details of a build (e.g. which CLs were used to create the build), but would it be possible to show this type of information on the main Jenkins page instead?
Thank you in advance for your help.
You could write an extension for the Dashboard View plugin to provide a portlet containing an aggregated list of changes from perforce, though if you aren't experienced with writing plugins then you might be better off using a separate repository browser such as Fisheye or P4Web to display your changes.

Resources