Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-71616

BuildCurrentPatchesOnly does not work for projects with complicated names

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • gerrit-trigger-plugin
    • None
    • Jenkins 2.401.1
      Gerrit-trigger-plugin 2.39.1
      Gerrit 3.3.11

      If project has complicated name like folder/project-name then buildCurrentPatchesOnly feature does not work because of cancelMatchingJobs gets parametr jobName as full name but for comparing it uses just relative name without folder or parent project item.task.getName()).

      https://github.com/jenkinsci/gerrit-trigger-plugin/blob/master/src/main/java/com/sonyericsson/hudson/plugins/gerrit/trigger/hudsontrigger/RunningJobs.java#L236

       

          [JENKINS-71616] BuildCurrentPatchesOnly does not work for projects with complicated names

          Mikhail added a comment -

          Mikhail added a comment - https://github.com/jenkinsci/gerrit-trigger-plugin/pull/490

          Mikhail added a comment -

          Mikhail added a comment - May fix this issue: https://issues.jenkins.io/browse/JENKINS-71328

          Michael Nazzareno added a comment - This should solve https://github.com/jenkinsci/gerrit-trigger-plugin/pull/504/commits/0b104a855060c63ed3f88657a6f50d91e82d5241

            rsandell rsandell
            wized Mikhail
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: