Jenkins - Advanced Project Display Name - jenkins

In the last war update (1.514) the list of project names (under the "All" tab) has changed to list the "Project Name" instead of the Display Name listed in the Advanced Project Options. The Advanced Display Name still shows during the build on the node. How can I get it back to displaying the Advanced Display Name?

This is fixed in 1.515:
Display Name is not shown. (issue 17715)

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")

Customization of columns in jenkins form for specific JOB

Is there any way in Jenkins where I can view customized data for a specific project. Like in the screenshot we can see columns (Salves, Online slaves, offline slaves etc.) Screen shot Example
View> Edit View> Portlets in the right column > Slaves statistics
I want to customize these columns for my project requirements like Build numbers, Revision numbers, svn changes (for every individual revision), the user (who submit this build) and Status. I knew we can see these changes individually from localhost:8080/jenkins/job/Job_name/224/ but I want to see whole information in one single form. I am good in Powershell but Java is not my cup of tea. Please help.
I don't think there is a plugin available to add custom columns, will require creating a custom plugin yourself. A plugin to add some pre-defined extra columns is available https://wiki.jenkins.io/display/JENKINS/Extra+Columns+Plugin
Alternatively, we added custom key value pairs in every build using currentBuild.description as shown here to be able to view in a single screen artifact name and environment for each build

How to add new "Platform" in Jira?

Need to add a new item is drop down in Jira. Did not found, searched for long time.
It's probably a custom field. Jira admins can change them
Unless this field comes from a plugin (Jira Server) or addon (Jira Cloud) it is a custom field. You will need admin permissions to configure a field. To add another option navigate to "Custom Fields" page, locate "Platform" field and choose a cog icon > Configure then click the Options or Edit Options link and you will be able to add new options there. Not sure which Jira version you are using, here you have a documentation for this for Jira 7.1.

Can I blank out a field in TFS using a work item template?

I have a number of TFS work items where I need to blank out a particular field (the Assigned To picklist). I would like to do this using a template, but if I leave the field empty in the template, it interprets that as meaning I don't want to change that field. Is there any way I can define a template where I tell it that I want to empty this field, when I apply the template to my work items? Maybe some special placeholder like , something like that?
Note: I'm working on TFS work items through Visual Studio 2010; and for some reason the web interface isn't accessible in this project.
Update; for anybody not familiar with work item templates, they are a way to define a batch of changes to make to a work item, which can be applied to one or more items in a single action. This functionality is part of Team Foundation Server Power Tools. Here's an example of a template I use frequently:
Once you have a suitable template defined, you can select a number of work items from a view in TFS, right-click, and apply the template to all of them with just three mouse-clicks in total:
Not sure what you mean by template. But if you have a bunch of work items and you want to do a bulk-update to set Assigned To to blank, I would do that in Excel.
Run a Work Item Query in Visual Studio, click the Open in Office/Excel button, copy-paste blank into the Assigned To field across all the rows, then hit Publish in the Team ribbon tab to publish those changes back to TFS.

Jenkins htmlpublisher issue

After choosing "Add post build action" and selecting "Publish HTML Reports" the htmlpublisher plugin displays the table header fields (html directory to archive, index pages, report title, keep past html reports) but does not display the fields to enter the data. Directly beneath the table header fields the Add and Delete buttons are displayed. I'm hoping someone has seen this behavior before and found a fix.
I'm running Jenkins on ubuntu 12.04. Other than not being able to publish html reports Jenkins is working and building jobs from SVN. No errors are reported in the Jenkins log. I initially was running Jenkins 1.424 when I noticed the problem (new install, so html publisher never used before). So I updated Jenkins to version 1.474 but the problem continued. I have removed and re-installed Jenkins, same results.
Thank you for your ideas and suggestions.
It looks like this bug has been noted: https://issues.jenkins-ci.org/browse/JENKINS-14491
And apparently: "Reverting to Jenkins 1.473 while keeping the plugin to 1.0 works."
This is how the plugin works...
you should create your html separately - let's say you created a folder named "MyReport" that contains a lot of html files in it, and the "index" html file is index.html.
on the "Publish Html Report" fields you will have to fill the following:
html directory to archive = MyReport
index pages = index.html
report title = My Report Title
and then you will have a link for that report from Jenkins UI

Resources