[JIRA] (JENKINS-62007) "filePaths" filter is not working for "ref-update" (refUpdated)

0 views
Skip to first unread message

amdokamal@gmail.com (JIRA)

unread,
Apr 22, 2020, 7:27:03 AM4/22/20
to jenkinsc...@googlegroups.com
S. Panchenko created an issue
 
Jenkins / Bug JENKINS-62007
"filePaths" filter is not working for "ref-update" (refUpdated)
Issue Type: Bug Bug
Assignee: rsandell
Components: gerrit-trigger-plugin
Created: 2020-04-22 11:26
Environment: Jenkins ver. 2.186
Gerrit-Trigger: 2.30.4
Pipeline: Groovy: 2.65
SCM API: 2.4.0
Pipeline: Step API: 2.22
Labels: plugin
Priority: Minor Minor
Reporter: S. Panchenko

Example of plugin configuration:

[
   @gerrit(gerritProjects=[
         {
            branches=[{compareType=PLAIN, pattern=unstable}],
            compareType=PLAIN,
            disableStrictForbiddenFileVerification=false,
            pattern=dev_manifest_project,
            filePaths=[
               {
                  compareType=PLAIN,
                  pattern=some_manifest.xml
               
               }            
            ]
         }
      ],
      serverName=gerrit.internal.com,
      triggerOnEvents=[@refUpdated()]
)])

Found info in old thread:

Feb 24, 2014. When there is ref-updated the option to choose path is taken under consideration. It just not working for ref-update.

Oct 15, 2014. I can't see anywhere within the plugin's documentation if this is a bug or an expected behavior. "Ref updated" doesn't care about specific paths or topics.

Nov 11, 2014. On the contrary, when you use ref-updated, there's no information about the changeset, so it is not possible to check for file inclusion.

If this is not possible to fix, then at least these restrictions should be reflected in the documentation.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages