Hello All, 

I have many tests to run across several branches. 
We pass the parameter 'BRANCH' to all the tests to keep track and use that 
internally. 
This works in an excellent fashion. 

I would like to be able to create views of test results by branch. 
I want to see the status, weather, and fail/skipped/success counts using the 
branch parameter. 

This seems easily doable using the view job filter plugin with the Build Filter 
Wrapper per these documents: 
https://wiki.jenkins-ci.org/display/JENKINS/View+Job+Filters 
https://wiki.jenkins-ci.org/display/JENKINS/Build+Filter+%28Wrapper%29+Column 
http://blog.cloudbees.com/2012/01/controlling-what-you-see-with-view-job.html 

However, when I set this up, the Filter Wrapper seems to do nothing. 
The success/fail/status counts on the view are calculated for ALL jobs with all 
parameters, not filtered down to 
the ones with the individual parameters. 

I've filed this issue, as it seems like this feature is simply not working. 
https://issues.jenkins-ci.org/browse/JENKINS-21862 

However, on the off chance it might be user error, I figured I will ask here. 


    * New List View 
    * Under 'Job Filters' I have nothing checked. 
    * I select "Parameterized job filter" from the 'Add Job Filter' dropdown. 
    * Under Name: I enter "BRANCH" 
    * Under Value: I enter the exact parameter value that is being passed. 
("main" for example - with no quotes of course) 
    * Match Type: I select "Include Matched" 
    * Under columns, I select' Build Filter (Wrapper) Column' from the 'add 
columns' dropdown 
    * I select "Number of Builds" 
    * Repeat the above two steps for Status and Weather 
    * Delete the old default columns for Number of Builds, Status, and Weather, 
(last *) 
    * Save the view. 

The view will show me a list of all jobs that have been run with BUILD=main. 
The Weather, Status, and Number of Builds columns are incorrect - they show 
totals for all jobs, even ones that do not 
have BUILD=main. 

For example, I have a test with "BRANCH=branchB" that has consistently failed 5 
times. 
Tests with BRANCH=main succeed 15 times. 

I expect that the filtered view would show Green for the status, and 15/0/0 for 
build counts. 
The filter instead shows Red for the status, and 15/0/5 for the build counts. 

Am I doing this properly, and is my expectation of the behavior correct. 

Thanks, 
Patricia 

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to