[JIRA] (JENKINS-61323) View with regular expressions: Misleading tooltips

5 views
Skip to first unread message

julian.schilling@continentale.de (JIRA)

unread,
Mar 4, 2020, 5:49:02 AM3/4/20
to jenkinsc...@googlegroups.com
Julian Schilling created an issue
 
Jenkins / Improvement JENKINS-61323
View with regular expressions: Misleading tooltips
Issue Type: Improvement Improvement
Assignee: Unassigned
Components: core
Created: 2020-03-04 10:48
Priority: Minor Minor
Reporter: Julian Schilling

The paths used by Jenkins internally do neither match the ones given on the view screen nor do they match the ones given in the tooltips. This should either be adjusted or added to the help text regarding regular expressions.

Example:
I created a folder **ExampleFolder, a subfolder OtherFolder and a job inside the subfulder ExampleProject. If one selects "Recurse in subfolders" this displays two jobs:

  • OtherFolder
  • OtherFolder » ExampleProject

This means that the regular expression .». should match only the ExampleProject, but it doesn't. The correct expression would be ./. because the path is "OtherFolder/ExampleProject" (even though Jenkins displays this differently).

Hovering over "OtherFolder » ExampleProject" gives the full path as "ExampleFolder/OtherFolder/ExampleProject", but this one is also not correct - the regular expression "E.*" should match both OtherFolder as well as ExampleProject in this case, but does not.

 

Suggestion: The easiest way would be to provide a short example in the help text, such as "Paths are divided by '/'. For example, to display all jobs within the folder named Test, write `Test/.*`".

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo

julian.schilling@continentale.de (JIRA)

unread,
Mar 4, 2020, 6:05:03 AM3/4/20
to jenkinsc...@googlegroups.com
Julian Schilling updated an issue
Change By: Julian Schilling
The paths used by Jenkins internally do neither match the ones given on the view screen nor do they match the ones given in the tooltips. This should either be adjusted or added to the help text regarding regular expressions.

---

Example:
I created a folder **_ExampleFolder_, a subfolder _OtherFolder_ and a job inside the subfulder _ExampleProject_. If one selects "Recurse in subfolders" this displays two jobs:
* OtherFolder
* OtherFolder » ExampleProject

This means that the regular expression .*».* _should_ match only the ExampleProject, but it doesn't. The correct expression _would_ be .*/.*
  because the path is "OtherFolder/ExampleProject" (even though Jenkins displays this differently).

Hovering over "OtherFolder » ExampleProject" gives the full path as "ExampleFolder/OtherFolder/ExampleProject", but this one is also not correct - the regular expression "E.*" _should_ match both OtherFolder as well as ExampleProject in this case, but does not.

 

Suggestion: The easiest way would be to provide a short example in the help text, such as "Paths are divided by '/'. For example, to display all jobs within the folder named _Test_, write `Test/.*`".

julian.schilling@continentale.de (JIRA)

unread,
Mar 4, 2020, 6:06:02 AM3/4/20
to jenkinsc...@googlegroups.com
Julian Schilling updated an issue
The paths used by Jenkins internally do neither match the ones given on the view screen nor do they match the ones given in the tooltips. This should either be adjusted or added to the help text regarding regular expressions.



Example:
I created a folder 
** _ExampleFolder_, a subfolder _OtherFolder_ and a job inside the subfulder _ExampleProject_. If one selects "Recurse in subfolders" this displays two jobs:

* OtherFolder
* OtherFolder » ExampleProject

This means that the regular expression . \ *». \ * _should_ match only the ExampleProject, but it doesn't. The correct expression _would_ be . \ */. \ * because the path is "OtherFolder/ExampleProject" (even though Jenkins displays this differently).

Hovering over "OtherFolder » ExampleProject" gives the full path as "ExampleFolder/OtherFolder/ExampleProject", but this one is also not correct - the regular expression "E.
\ *" _should_ match both OtherFolder as well as ExampleProject in this case, but does not.


 

Suggestion: The easiest way would be to provide a short example in the help text, such as "Paths are divided by '/'. For example, to display all jobs within the folder named _Test_, write `Test/.*`".

julian.schilling@continentale.de (JIRA)

unread,
Mar 4, 2020, 6:19:04 AM3/4/20
to jenkinsc...@googlegroups.com
Julian Schilling updated an issue
The paths used by Jenkins internally to evaluate regular expressions for views do neither match the ones given on the view screen nor do they match the ones given in the tooltips. This should either be adjusted or added to the help text regarding regular expressions.



Example:
I created a folder _ExampleFolder_, a subfolder _OtherFolder_ and a job inside the subfulder _ExampleProject_. If one selects "Recurse in subfolders" this displays two jobs:

* OtherFolder
* OtherFolder » ExampleProject

This means that the regular expression .\*».\* _should_ match only the ExampleProject, but it doesn't. The correct expression _would_ be .\*/.\* because the path is "OtherFolder/ExampleProject" (even though Jenkins displays this differently).

Hovering over "OtherFolder » ExampleProject" gives the full path as "ExampleFolder/OtherFolder/ExampleProject", but this one is also not correct - the regular expression "E.\*" _should_ match both OtherFolder as well as ExampleProject in this case, but does not.

 

Suggestion: The easiest way would be to provide a short example in the help text, such as "Paths are divided by '/'. For example, to display all jobs within the folder named _Test_, write `Test/.*`".
Reply all
Reply to author
Forward
0 new messages