Hudson rejects default view for "My Views," triggers NullPointerException - hudson

Our Hudson server now has about 70 jobs and I'd like to use 'My Views' to limit what I get on my dashboard.
I don't like the 'All' default view for "My Views" so I created a personal view and tried to set it in Hudson preferences for my account.
Whatever view name I put in, Hudson fails with a 500/NPE from Winstone. Moreover, I can't get any default view back.
I updated Hudson to the latest version and it still fails.
Am I missing something simple?
Or are we misconfigured?

It seems that you are trying to set your personal view as a global default view. (I'm not 100% sure about it, since I deal with Jenkins, not Hudson - things may be different). I do not think this can be done. I can propose two options:
Create a global view that will contain the jobs everybody wants to see and set it as a global default view.
Create your custom view and bookmark its URL.

Related

Zabbix 6 Remote command not available

I am unable to get the remote command option on zabbix 6 for some reason any ideas?Operation description
if anyone can assist me i have worked through all the user manuals and they don't mention something about requirements on this drop down.
In version 6, commands are available for execution if previously defined in global scripts with Action operation selected as its scope.
In the previous versions, you just needed to select "remote command" as "operation type".
See https://www.zabbix.com/documentation/current/en/manual/config/notifications/action/operation#configuring-an-operation
Zabbix support came back with the answer on this and this is what you need to do.
Please be advised that In Zabbix 6.0 to use Scripts in Operations step you need to create such Scripts in Administration - Scripts section in Zabbix Frontend and set
Scope to Action operation:
enter image description here
Then this Script will be available in your Operations steps:enter image description here
So basically there is a seprate section to go and create your scripts and assign them to the action you want to take.

Integrate clearcase with Hudson

I am trying to integrate clearcase with Hudson, but auto build is not triggering while merge or checkout.
Created dynamic view "sundaa4_Hudson_Test" and gave the config spec which I used in clearcase
When I gave manual build its showing error
Workspace is not creating in path .hudson\jobs\Hudson_Testing_Sijith\workspace
PLease give some input on this
Make sure your config spec ends with a selection rule like:
element * /main/LATEST
Or it won't select much, which would explain why Hudson doesn't create anything (it doesn't detect any change).
A cleartool lsview which returns a line starting with '*' means the dynamic view is already started: no need to repeat multiple cleartool startview.
Make sure your View root does exists: usually, the MVFS drive for dynamic view is M:\, not K:\.

Run build on change but don't checkout in Hudson

I have kind of an interesting problem...
So I'm trying to run a build every time I see a change on a directory in my SCM in Hudson. However, I don't need to pull the directory to run my script. Is there any way to check if there's a change in a directory, but don't pull it?
In addition, there is another directory which I do need to pull from Hudson at the same time. So basically I want something like:
On change of directory A or B:
pull directory B only
run script
I was told there was functionality like this in Hudson, but I can't find it. Any suggestions? Thanks for the help!
In case anyone is interested, I was able to accomplish this with just Hudson and Perforce.
When using Perforce as the SCM (don't know about the others) there is a 'Use View Mask' checkbox. Checking that give you the ability to choose which directories/files in Perforce to poll without actually pulling those files. For example, I had in my view:
//depot/my_script
I didn't want my script to run automatically when I had a new version, so I put it int o the "Poll Exclude File(s) text box:
//depot/my_script
Which pulls the latest version of my script. Then I checked the Use View Mask checkbox and put:
//depot/my_code_to_compile/
into the View Mask box.
To make Perforce poll for changes, I just checked the "Poll SCM" in build triggers and then made it check every minute. (by inserting "* * * * *" into the Scheduler box)
So to sum up, with the variables set as above, my Hudson job had the following behavior:
check for changes every minute
On changes to //depot/my_code_to_compile/, the Hudson job will run
On changes to //depot/my_script, nothing will happen
The job will pull changes to my_script, but will download nothing from //depot/my_code_to_compile/.
I think you need to install the FSTrigger Plugin for this functionality. To what the wiki pages show this is supported in Jenkins, I am not sure about Hudson compatibility.

Clearcase plugin with hudson ci server

We are using base clear case with dynamic views on Linux.
In our environment some custom script is responsible, so ct mkview is not working.
I need either
- provide to Hudson plugin a custom script for creating a view
- tell to plugin to reuse existing view, w/o calling to ct mkview
I did not find any of these options.
Can you help me?
Here are my current settings:
Thank you
As I have detailed in "Hudson integration with UCM ClearCase", you can use an existing dynamic view, even if it is non-UCM.
You need to click on "Advanced Options" to access to that part.
That being said, make sure the user associated with the Hudson session is registered in the right groups (primary or secondary groups of the Vobs that account needs to access) in order to be able to read (even checkout) files in said Vobs.
Turns out the OP did have the right Hudson ClearCase plugin, did access the "Advanced Options" part, but:
"Use dynamic view" option
and the "Let Hudson manage the view lifecycle".
That second option isn't needed when you have a dynamic view already created (outside of Hudson), and if you want that view to be reused as is.

Devel Show Queries

I may be missing something obvious here, but in the devel module settings I have checked "Collect query info" and "Display query log", and saved. Where does this information show up? I don't see anything different when I load pages. Is there a variable that I need to inject somewhere in my templates that I missed? I would like to view what queries are executing on each page and the amount of time they are taking.
It should show up in $closure in your theme, unless you have something like Admin installed. In that case, it shows up in the Admin menu under the Devel section.
In addition to Mark Trapp's answer: you need a permission set: "display devel output". Users without that permisison will see no development output.
Check user permissions - there is a specific permission allowing you to view the devel logs. No permission=see nothing at all.