I tried to use parantheses '(', ')' when searching for open tasks with the Task Scanner Plugin (v4.35). I need the parantheses to group my regex and to apply * operator. For example, I want to search for "TODO([A-Za-z0-9])*. This delivers zero reults, also I have TODOs matching this regex. My actual regex is more complicated, so I definitely need parantheses to group it, this is just a simple example.
      If I escape the parantheses, I get hundreds of thousands of results. So this can't be the correct approach. How can I get grouping and using * in my regex to work?

          [JENKINS-17225] Allow regular expressions as tags

          Ulli Hafner added a comment -

          Actually the plug-in has no "official" support for regexps yet. It feeds the string to a regular expression matcher internally. Up to now it was supposed that the tag itself will be a plain string.

          Ulli Hafner added a comment - Actually the plug-in has no "official" support for regexps yet. It feeds the string to a regular expression matcher internally. Up to now it was supposed that the tag itself will be a plain string.

          Ulli Hafner added a comment -

          Ulli Hafner added a comment - See also https://github.com/uhafner/acceptance-test-harness/pull/52 (section (2)).

          Code changed in jenkins
          User: Ulli Hafner
          Path:
          .idea/compiler.xml
          tasks
          http://jenkins-ci.org/commit/analysis-suite-plugin/0706e75108ee6e5884637f88dcc6ea9131b5df4f
          Log:
          [FIXED JENKINS-17225] Added support for regular expressions as task tags.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Ulli Hafner Path: .idea/compiler.xml tasks http://jenkins-ci.org/commit/analysis-suite-plugin/0706e75108ee6e5884637f88dcc6ea9131b5df4f Log: [FIXED JENKINS-17225] Added support for regular expressions as task tags.

          Code changed in jenkins
          User: Ulli Hafner
          Path:
          src/main/java/hudson/plugins/tasks/TasksPublisher.java
          src/main/java/hudson/plugins/tasks/TasksReporter.java
          src/main/java/hudson/plugins/tasks/parser/TaskScanner.java
          src/main/java/hudson/plugins/tasks/parser/WorkspaceScanner.java
          src/main/resources/hudson/plugins/tasks/config/tasks.jelly
          src/main/resources/hudson/plugins/tasks/config/tasks.properties
          src/main/resources/hudson/plugins/tasks/config/tasks_de.properties
          src/test/java/hudson/plugins/tasks/parser/TaskScannerTest.java
          src/test/resources/hudson/plugins/tasks/parser/regexp.txt
          tasks.iml
          http://jenkins-ci.org/commit/tasks-plugin/ccdf5fad0ce1d35bf79777a1370b225f586ca493
          Log:
          [FIXED JENKINS-17225] Added support for regular expressions as task tags.

          Compare: https://github.com/jenkinsci/tasks-plugin/compare/cfdc2990a00d...ccdf5fad0ce1

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Ulli Hafner Path: src/main/java/hudson/plugins/tasks/TasksPublisher.java src/main/java/hudson/plugins/tasks/TasksReporter.java src/main/java/hudson/plugins/tasks/parser/TaskScanner.java src/main/java/hudson/plugins/tasks/parser/WorkspaceScanner.java src/main/resources/hudson/plugins/tasks/config/tasks.jelly src/main/resources/hudson/plugins/tasks/config/tasks.properties src/main/resources/hudson/plugins/tasks/config/tasks_de.properties src/test/java/hudson/plugins/tasks/parser/TaskScannerTest.java src/test/resources/hudson/plugins/tasks/parser/regexp.txt tasks.iml http://jenkins-ci.org/commit/tasks-plugin/ccdf5fad0ce1d35bf79777a1370b225f586ca493 Log: [FIXED JENKINS-17225] Added support for regular expressions as task tags. Compare: https://github.com/jenkinsci/tasks-plugin/compare/cfdc2990a00d...ccdf5fad0ce1

          Code changed in jenkins
          User: Ulli Hafner
          Path:
          pom.xml
          src/main/java/org/jenkinsci/test/acceptance/plugins/tasks/AbstractTaskScannerBuildSettings.java
          src/test/java/plugins/CheckstylePluginTest.java
          src/test/java/plugins/TaskScannerPluginTest.java
          src/test/resources/tasks_plugin/regexp/pom.xml
          src/test/resources/tasks_plugin/regexp/regexp.txt
          http://jenkins-ci.org/commit/acceptance-test-harness/0d9bb7cd3fe6794e89eb4ca6671b5fd715d177e7
          Log:
          JENKINS-17225 Added test cases that show that the regexp tags feature works.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Ulli Hafner Path: pom.xml src/main/java/org/jenkinsci/test/acceptance/plugins/tasks/AbstractTaskScannerBuildSettings.java src/test/java/plugins/CheckstylePluginTest.java src/test/java/plugins/TaskScannerPluginTest.java src/test/resources/tasks_plugin/regexp/pom.xml src/test/resources/tasks_plugin/regexp/regexp.txt http://jenkins-ci.org/commit/acceptance-test-harness/0d9bb7cd3fe6794e89eb4ca6671b5fd715d177e7 Log: JENKINS-17225 Added test cases that show that the regexp tags feature works.

          Code changed in jenkins
          User: Ulli Hafner
          Path:
          analysis-core
          tasks
          warnings
          http://jenkins-ci.org/commit/analysis-suite-plugin/97e522828f8a24ad80b5520304b1659c2eda5803
          Log:
          JENKINS-17225 Provide a field to validate the task tags definition.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Ulli Hafner Path: analysis-core tasks warnings http://jenkins-ci.org/commit/analysis-suite-plugin/97e522828f8a24ad80b5520304b1659c2eda5803 Log: JENKINS-17225 Provide a field to validate the task tags definition.

          Code changed in jenkins
          User: Ulli Hafner
          Path:
          analysis-core.iml
          http://jenkins-ci.org/commit/analysis-core-plugin/b64516f9da46ffdd99018a6ba5c0e89a2a4ead0c
          Log:
          JENKINS-17225 Provide a field to validate the task tags definition.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Ulli Hafner Path: analysis-core.iml http://jenkins-ci.org/commit/analysis-core-plugin/b64516f9da46ffdd99018a6ba5c0e89a2a4ead0c Log: JENKINS-17225 Provide a field to validate the task tags definition.

          Code changed in jenkins
          User: Ulli Hafner
          Path:
          src/main/java/hudson/plugins/tasks/TasksDescriptor.java
          src/main/java/hudson/plugins/tasks/parser/TaskScanner.java
          src/main/resources/hudson/plugins/tasks/Messages.properties
          src/main/resources/hudson/plugins/tasks/Messages_de.properties
          src/main/resources/hudson/plugins/tasks/TasksPublisher/config.jelly
          src/main/resources/hudson/plugins/tasks/config/tasks.jelly
          src/main/resources/hudson/plugins/tasks/config/tasks.properties
          src/main/resources/hudson/plugins/tasks/config/tasks_de.properties
          http://jenkins-ci.org/commit/tasks-plugin/95eed9adb9b382c8a73fb4842709e7eb343bd201
          Log:
          JENKINS-17225 Provide a field to validate the task tags definition.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Ulli Hafner Path: src/main/java/hudson/plugins/tasks/TasksDescriptor.java src/main/java/hudson/plugins/tasks/parser/TaskScanner.java src/main/resources/hudson/plugins/tasks/Messages.properties src/main/resources/hudson/plugins/tasks/Messages_de.properties src/main/resources/hudson/plugins/tasks/TasksPublisher/config.jelly src/main/resources/hudson/plugins/tasks/config/tasks.jelly src/main/resources/hudson/plugins/tasks/config/tasks.properties src/main/resources/hudson/plugins/tasks/config/tasks_de.properties http://jenkins-ci.org/commit/tasks-plugin/95eed9adb9b382c8a73fb4842709e7eb343bd201 Log: JENKINS-17225 Provide a field to validate the task tags definition.

          Code changed in jenkins
          User: Ulli Hafner
          Path:
          warnings.iml
          http://jenkins-ci.org/commit/warnings-plugin/d9ba0beab9c46a92ecd5a7400c7d88f90902fa53
          Log:
          JENKINS-17225 Provide a field to validate the task tags definition.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Ulli Hafner Path: warnings.iml http://jenkins-ci.org/commit/warnings-plugin/d9ba0beab9c46a92ecd5a7400c7d88f90902fa53 Log: JENKINS-17225 Provide a field to validate the task tags definition.

            drulli Ulli Hafner
            fep2k Fabian Pachner
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: