This is about jenkins environment dashboard plugin. - jenkins

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.

Related

How to solve Dashboard showing "[user] is missing the Overall/Administer permission" after jenkins.war upgrade to 2.263.3

I was about to ask this question - but have managed to find a solution.
Adding question anyway in the hope that it might help others.
AND because I was initially scared to do anything with wizard in case jenkins config got wiped .. or something. So despite seeing the wizard I went all around the houses moving config files, editing different settings before finally finding the very easy solution!
Upgrade from jenkins.war 2.263.3 to 2.375.1 gave some trouble.
Jenkins with workflow and pipelines.
PROBLEM:
Dashboard shows "[user] is missing the Overall/Administer permission"
You can actually use menus and see jobs to some extent but various parts of GUI are not working.
SOLUTION:
Try to login as admin user.
Instead of Dashboard showing the jenkins setup wizard was showing.
Click in the wizard to skip setup and get rid of it.
After that Dashboard shows ok for the admin user and also for other users.
Another thing to watch with this jump upgrade - ssl library has changed and jenkins internal .ssh/config had to have some changes to control legacy ssh keys.
Login as admin user.
Instead of Dashboard showing the jenkins setup wizard was showing.
SOLUTION:
Click in the wizard to skip setup and get rid of it.
After that Dashboard shows ok for the admin user and also for other users.

Jenkins pipeline menu does not show the "Configure", "Build Now", and some other options

I have a Jenkins pipeline that I have setup with a project I have on GitHub. Initially, I manually initiated a build each time I changed my code by clicking the "Build Now" option. However, I did two things to make my process easier:
I setup a GitHub hook to run the build I defined in my Jenkinsfile after each push to my master branch
I setup a periodic build to build every hour
I left my Jenkins for a day, came back, and everything, even from the dashboard, looks different.
For example:
My dashboard used to have these options:
New Item
People
Build History
Project Relationship
Check File Fingerprint
Manage Jenkins
My Views
Lockable Resources
Credentials
New View
The current dashboard only has three of those options:
People
Build History
Credentials
Also, when I clicked on my pipeline, the options I had were:
Status
Changes
Build Now
Delete Pipeline
Configure
Full Stage View
Rename
Pipeline Syntax
Whereas now, they are:
Status
Full Stage View
GitHub Hook Log
Git Polling Log
How can I change my configurations/settings to see the pages the way I saw them before? It seems I can't create any new items or change my current pipeline, which are things I may need to do in the future.
It turns out I wasn't logged in. I didn't think the initial pages would even show up if I hadn't been logged in, so I didn't even consider it to be a possibility. I logged in and all my issues were resolved.

Jenkins - Update / Edit the left panel label

I have configured Jenkins in my system and running fine. But I need to configure the jenkins UI.
a) I want to remove the "Jenkins" logo in header and instead of that I need to add "some text title".
b) I want to edit the left panel labels.
Ex. Build history to Workflow history, My View to Workflow View and Build Executor Status to Workflow Executor Status
Do we have any option to edit the html/config file directly or need to install any plugin to edit these labels. Thanks for your valuable time.
You can use the Jenkin's plugin simple theme:
https://wiki.jenkins.io/display/JENKINS/Simple+Theme+Plugin
You can personalize the CSS, the home page, the favicon. Pretty much everything that you need.
If you just need to do minor changes, you can have a look at https://github.com/jenkinsci/jenkins/tree/master/src/site (site.xml). And the resources folder where the logo is stored.

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.

Cloudbees Jenkins dashboard customization

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.

Resources