[JIRA] (JENKINS-41910) The regular expression for job categorization should look at the full job name

2017-03-01 Thread a...@ordbogen.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Anders Kielsholm commented on  JENKINS-41910  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: The regular _expression_ for job categorization should look at the full job name   
 

  
 
 
 
 

 
 I have made a fix in the way described in my earlier comment. Note that this also fixes an issue regarding statuses not being correct for Pipeline Jobs since they are a subclass of Job and not AbstractProject. I don't know if it's ready for a Pull Request (I'm not that used to dealing with issues), but the branch can be found here: https://github.com/ordbogen/categorized-view-plugin/tree/pipeline_support  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





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


[JIRA] (JENKINS-41910) The regular expression for job categorization should look at the full job name

2017-03-01 Thread a...@ordbogen.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Anders Kielsholm commented on  JENKINS-41910  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: The regular _expression_ for job categorization should look at the full job name   
 

  
 
 
 
 

 
 I also ran into this, but the solution seems pretty simple. In GroupingRule.java there are two methods using TopLevelItem's getName(), but should be using getFullName() in order for this to work.  Only problem with changing would be that it wouldn't be backward compatible in a lot of cases. I don't know if a solution to that could be adding .*/ to the normalizing-steps (if no / are present)?  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





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


[JIRA] (JENKINS-41910) The regular expression for job categorization should look at the full job name

2017-03-01 Thread a...@ordbogen.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Anders Kielsholm edited a comment on  JENKINS-41910  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: The regular _expression_ for job categorization should look at the full job name   
 

  
 
 
 
 

 
 I also ran into this, but the solution seems pretty simple. In [GroupingRule.java|https://github.com/jenkinsci/categorized-view-plugin/blob/master/src/main/java/org/jenkinsci/plugins/categorizedview/GroupingRule.java] there are two methods using {{TopLevelItem}}'s {{getName()}}, but should be using {{getFullName()}} in order for this to work. Only problem with changing would be that it wouldn't be backward compatible in a lot of cases. I don't know if a solution to that could be  adding  prepending  {{.*/}} to the  regex in the  normalizing-steps (if no {{/}} are present)?  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





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


[JIRA] (JENKINS-41910) The regular expression for job categorization should look at the full job name

2017-02-09 Thread petrikvanderve...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Petrik van der Velde assigned an issue to taksan  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-41910  
 
 
  The regular _expression_ for job categorization should look at the full job name   
 

  
 
 
 
 

 
Change By: 
 Petrik van der Velde  
 
 
Assignee: 
 taksan  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





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


[JIRA] (JENKINS-41910) The regular expression for job categorization should look at the full job name

2017-02-09 Thread petrikvanderve...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Petrik van der Velde created an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-41910  
 
 
  The regular _expression_ for job categorization should look at the full job name   
 

  
 
 
 
 

 
Issue Type: 
  Improvement  
 
 
Assignee: 
 Unassigned  
 
 
Components: 
 categorized-view-plugin  
 
 
Created: 
 2017/Feb/09 11:08 PM  
 
 
Priority: 
  Minor  
 
 
Reporter: 
 Petrik van der Velde  
 

  
 
 
 
 

 
 The regular _expression_ for the inclusion of jobs looks at the full name of the job including folders, however the regular _expression_ for grouping jobs only looks at the name of the job. That means it's impossible to group jobs based on their folder. For example if I have jobs: folder1/subfolder1/job1 folder1/subfolder1/job2 folder1/subfolder2/job1 folder1/subfolder2/job2 folder2/subfolder1/job1 folder2/subfolder1/job2 folder2/subfolder2/job1 folder2/subfolder2/job2 In this case I can have a view that shows all builds in folder1 by setting the regular _expression_ to '(folder1)\/.\/.$' If I now want to group the builds by subfolder I would imagine that I need to set the categorization regular _expression_ to: '.\/(subfolder2)\/.$'. However that won't work because the categorization regex only works on the build name (i.e. job1 / job2 etc.)  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment