RegEx Job Filter for SCM Not Working

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

RegEx Job Filter for SCM Not Working

Sverre Moe-2
I am trying to get the Regular Expression Job Filter to work with SCM Configuration.

Regular Expression: ssh://[hidden email]/various/.*
Match Value: Job SCM Configuration
Match Type: Include Matched

But no jobs are listed in the View. I want it to list all jobs that have SCM configuration with the various namespace.
I have also tried with the following regular expressions
.*/various/.*
./various/.

According to documentation for the View Job Filter Plugin
SCM Configuration - this one is perhaps the best bang for the buck - put in something like "./my-office-name/." to automatically include all jobs that are organized under source control already by office.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/9b6d5470-e4e9-46d5-adc3-9ecc7a398785%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: RegEx Job Filter for SCM Not Working

Sverre Moe-2
According to documentation it should be possible.

It would greatly reduce the Jenkins Configuration by Code in jenkins.yaml
Not needing to list each and every jobs for each View, makes maintenace much easier.

This is my JCaC configuration that does not work:
  - list:
      columns
:
     
- "jobName"
     
- "lastSuccess"
     
- "lastFailure"
     
- "lastDuration"
      description
: "<h3>systems builds</h3>\r\nContains projects under systems namespace"
      jobFilters
:
     
- regExJobFilter:
          includeExcludeTypeString
: "includeMatched"
          matchDisplayName
: false
          matchFullDisplayName
: false
          matchFullName
: false
          matchName
: true
          regex
: "ssh://[hidden email]/systems/.*"
          valueTypeString
: "SCM"
      name
: "Systems"

The JCaC would be difficult to maintain if I had to list each jobs in this file for each view.


tirsdag 7. april 2020 10.42.54 UTC+2 skrev Sverre Moe følgende:
I am trying to get the Regular Expression Job Filter to work with SCM Configuration.

Regular Expression: ssh://<a href="http://git@git.company.com/various/.*" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fgit%40git.company.com%2Fvarious%2F.*\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGJ9-0LhZm342pAsFDNYLHyEnCsjQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fgit%40git.company.com%2Fvarious%2F.*\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGJ9-0LhZm342pAsFDNYLHyEnCsjQ&#39;;return true;">git@.../various/.*
Match Value: Job SCM Configuration
Match Type: Include Matched

But no jobs are listed in the View. I want it to list all jobs that have SCM configuration with the various namespace.
I have also tried with the following regular expressions
.*/various/.*
./various/.

According to documentation for the View Job Filter Plugin
SCM Configuration - this one is perhaps the best bang for the buck - put in something like "./my-office-name/." to automatically include all jobs that are organized under source control already by office.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/e14c4796-0590-4ba6-94f7-efcf7b1e57a9%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: RegEx Job Filter for SCM Not Working

Sverre Moe-2
The plugin does not support Pipeline projects for SCM Configuration filtering on RegEx.
I have created a change request: https://issues.jenkins-ci.org/browse/JENKINS-62233

mandag 4. mai 2020 11.51.52 UTC+2 skrev Sverre Moe følgende:
According to documentation it should be possible.

It would greatly reduce the Jenkins Configuration by Code in jenkins.yaml
Not needing to list each and every jobs for each View, makes maintenace much easier.

This is my JCaC configuration that does not work:
  - list:
      columns
:
     
- "jobName"
     
- "lastSuccess"
     
- "lastFailure"
     
- "lastDuration"
      description
: "<h3>systems builds</h3>\r\nContains projects under systems namespace"
      jobFilters
:
     
- regExJobFilter:
          includeExcludeTypeString
: "includeMatched"
          matchDisplayName
: false
          matchFullDisplayName
: false
          matchFullName
: false
          matchName
: true
          regex
: "ssh://<a href="http://git@git.company.com/systems/.*" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fgit%40git.company.com%2Fsystems%2F.*\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGivrPz10eUJD2Io6qlUOVyJdtUFA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fgit%40git.company.com%2Fsystems%2F.*\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGivrPz10eUJD2Io6qlUOVyJdtUFA&#39;;return true;">git@.../systems/.*"
          valueTypeString
: "SCM"
      name
: "Systems"

The JCaC would be difficult to maintain if I had to list each jobs in this file for each view.


tirsdag 7. april 2020 10.42.54 UTC+2 skrev Sverre Moe følgende:
I am trying to get the Regular Expression Job Filter to work with SCM Configuration.

Regular Expression: ssh://<a href="http://git@git.company.com/various/.*" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fgit%40git.company.com%2Fvarious%2F.*\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGJ9-0LhZm342pAsFDNYLHyEnCsjQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fgit%40git.company.com%2Fvarious%2F.*\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGJ9-0LhZm342pAsFDNYLHyEnCsjQ&#39;;return true;">git@.../various/.*
Match Value: Job SCM Configuration
Match Type: Include Matched

But no jobs are listed in the View. I want it to list all jobs that have SCM configuration with the various namespace.
I have also tried with the following regular expressions
.*/various/.*
./various/.

According to documentation for the View Job Filter Plugin
SCM Configuration - this one is perhaps the best bang for the buck - put in something like "./my-office-name/." to automatically include all jobs that are organized under source control already by office.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/9c9cafbb-b3f0-47b3-822e-94c722d743ad%40googlegroups.com.