• Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Minor Minor
    • build-blocker-plugin
    • None
    • 165.v5ecb_fb_f61520

      blocking property support all jobs including pipeline (symbol was also added on https://github.com/jenkinsci/build-blocker-plugin/commit/c472151589710de894ff54a4ab278839b3280c35

      But I would like to setup such property at folder level for all jobs inherit the property by default. Folder or multibranch pipeline

      It will avoid duplicating code at pipeline level and enforce such blocking status by person configuring job (like via JobDSL) and the ones implementing the pipeline.

       

        1. blocking1.PNG
          blocking1.PNG
          11 kB
        2. blocking2.PNG
          blocking2.PNG
          6 kB
        3. blocking3.PNG
          blocking3.PNG
          37 kB
        4. image-2024-04-19-05-04-00-587.png
          image-2024-04-19-05-04-00-587.png
          47 kB
        5. screenshot-1.png
          screenshot-1.png
          86 kB

          [JENKINS-72588] Support for folder properties

          Valentin Delaye created issue -
          Valentin Delaye made changes -
          Description Original: blocking property support all jobs including pipeline (symbol was also added on [https://github.com/jenkinsci/build-blocker-plugin/commit/c472151589710de894ff54a4ab278839b3280c35).]

          But I would like to setup such property at folder level for all jobs inherit the property by default.

          It will avoid duplicating code at pipeline level and enforce such blocking status by person configuring job (like via JobDSL) and the ones implementing the pipeline.
           * Add optional dependency with folder plugin
           * Implement property implementing `FolderProperty` (example [https://github.com/jenkinsci/priority-sorter-plugin/blob/master/src/main/java/jenkins/advancedqueue/jobinclusion/strategy/JobInclusionFolderProperty.java)]
           ** Some code could be moved to an Abstract class
           * Ensuring to retrieve property when querying getBuildBlockerProperty
           * Tests

           
          New: blocking property support all jobs including pipeline (symbol was also added on [https://github.com/jenkinsci/build-blocker-plugin/commit/c472151589710de894ff54a4ab278839b3280c35).]

          But I would like to setup such property at folder level for all jobs inherit the property by default. Folder or multibranch pipeline

          It will avoid duplicating code at pipeline level and enforce such blocking status by person configuring job (like via JobDSL) and the ones implementing the pipeline.
           * Add optional dependency with folder plugin
           * Implement property implementing `FolderProperty` (example [https://github.com/jenkinsci/priority-sorter-plugin/blob/master/src/main/java/jenkins/advancedqueue/jobinclusion/strategy/JobInclusionFolderProperty.java)]
           ** Some code could be moved to an Abstract class
           * Ensuring to retrieve property when querying getBuildBlockerProperty
           * Tests. Ensure the property appear on the FolderPropertiesContext and not only the PropertiesContext

           

          Denis Mone added a comment - - edited

          Hello jonesbusy .
          This seems like a useful feature for the plugin and I'd like to see it implemented.
          The problem is that i am not familiar with Jenkins plugin development. I've only made 
          some trivial code changes when i adopted the plugin.

          Denis Mone added a comment - - edited Hello jonesbusy . This seems like a useful feature for the plugin and I'd like to see it implemented. The problem is that i am not familiar with Jenkins plugin development. I've only made  some trivial code changes when i adopted the plugin.
          Valentin Delaye made changes -
          Description Original: blocking property support all jobs including pipeline (symbol was also added on [https://github.com/jenkinsci/build-blocker-plugin/commit/c472151589710de894ff54a4ab278839b3280c35).]

          But I would like to setup such property at folder level for all jobs inherit the property by default. Folder or multibranch pipeline

          It will avoid duplicating code at pipeline level and enforce such blocking status by person configuring job (like via JobDSL) and the ones implementing the pipeline.
           * Add optional dependency with folder plugin
           * Implement property implementing `FolderProperty` (example [https://github.com/jenkinsci/priority-sorter-plugin/blob/master/src/main/java/jenkins/advancedqueue/jobinclusion/strategy/JobInclusionFolderProperty.java)]
           ** Some code could be moved to an Abstract class
           * Ensuring to retrieve property when querying getBuildBlockerProperty
           * Tests. Ensure the property appear on the FolderPropertiesContext and not only the PropertiesContext

           
          New: blocking property support all jobs including pipeline (symbol was also added on [https://github.com/jenkinsci/build-blocker-plugin/commit/c472151589710de894ff54a4ab278839b3280c35|https://github.com/jenkinsci/build-blocker-plugin/commit/c472151589710de894ff54a4ab278839b3280c35).]

          But I would like to setup such property at folder level for all jobs inherit the property by default. Folder or multibranch pipeline

          It will avoid duplicating code at pipeline level and enforce such blocking status by person configuring job (like via JobDSL) and the ones implementing the pipeline.
           * Add optional dependency with folder plugin
           * Implement property implementing `FolderProperty` (example [https://github.com/jenkinsci/priority-sorter-plugin/blob/master/src/main/java/jenkins/advancedqueue/jobinclusion/strategy/JobInclusionFolderProperty.java|https://github.com/jenkinsci/priority-sorter-plugin/blob/master/src/main/java/jenkins/advancedqueue/jobinclusion/strategy/JobInclusionFolderProperty.java)]
           ** Some code could be moved to an Abstract class
           * Ensuring to retrieve property when querying getBuildBlockerProperty
           * Tests. Ensure the property appear on the FolderPropertiesContext and not only the PropertiesContext

           
          Valentin Delaye made changes -
          Description Original: blocking property support all jobs including pipeline (symbol was also added on [https://github.com/jenkinsci/build-blocker-plugin/commit/c472151589710de894ff54a4ab278839b3280c35|https://github.com/jenkinsci/build-blocker-plugin/commit/c472151589710de894ff54a4ab278839b3280c35).]

          But I would like to setup such property at folder level for all jobs inherit the property by default. Folder or multibranch pipeline

          It will avoid duplicating code at pipeline level and enforce such blocking status by person configuring job (like via JobDSL) and the ones implementing the pipeline.
           * Add optional dependency with folder plugin
           * Implement property implementing `FolderProperty` (example [https://github.com/jenkinsci/priority-sorter-plugin/blob/master/src/main/java/jenkins/advancedqueue/jobinclusion/strategy/JobInclusionFolderProperty.java|https://github.com/jenkinsci/priority-sorter-plugin/blob/master/src/main/java/jenkins/advancedqueue/jobinclusion/strategy/JobInclusionFolderProperty.java)]
           ** Some code could be moved to an Abstract class
           * Ensuring to retrieve property when querying getBuildBlockerProperty
           * Tests. Ensure the property appear on the FolderPropertiesContext and not only the PropertiesContext

           
          New: blocking property support all jobs including pipeline (symbol was also added on [https://github.com/jenkinsci/build-blocker-plugin/commit/c472151589710de894ff54a4ab278839b3280c35|https://github.com/jenkinsci/build-blocker-plugin/commit/c472151589710de894ff54a4ab278839b3280c35]

          But I would like to setup such property at folder level for all jobs inherit the property by default. Folder or multibranch pipeline

          It will avoid duplicating code at pipeline level and enforce such blocking status by person configuring job (like via JobDSL) and the ones implementing the pipeline.
           * Add optional dependency with folder plugin
           * Implement property implementing `FolderProperty` (example [https://github.com/jenkinsci/priority-sorter-plugin/blob/master/src/main/java/jenkins/advancedqueue/jobinclusion/strategy/JobInclusionFolderProperty.java|https://github.com/jenkinsci/priority-sorter-plugin/blob/master/src/main/java/jenkins/advancedqueue/jobinclusion/strategy/JobInclusionFolderProperty.java]
           ** Some code could be moved to an Abstract class
           * Ensuring to retrieve property when querying getBuildBlockerProperty
           * Tests. Ensure the property appear on the FolderPropertiesContext and not only the PropertiesContext

           

          Hi,

          That's ok, anyone is free to pick-up the issue (including me ). I would be very useful for me due to my setup where I want to enforce such property add folder level and not update hundreds of pipeline. For the moment I have other priorities and also wanted that JENKINS-72250 is resolved first.

          Valentin Delaye added a comment - Hi, That's ok, anyone is free to pick-up the issue (including me ). I would be very useful for me due to my setup where I want to enforce such property add folder level and not update hundreds of pipeline. For the moment I have other priorities and also wanted that JENKINS-72250 is resolved first.
          Valentin Delaye made changes -
          Assignee Original: Denis Mone [ dmone ] New: Valentin Delaye [ jonesbusy ]
          Valentin Delaye made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Valentin Delaye made changes -
          Status Original: In Progress [ 3 ] New: In Review [ 10005 ]

          dmone This is in review https://github.com/jenkinsci/build-blocker-plugin/pull/22

          Can you take a look at it ? Regards,

          Valentin Delaye added a comment - dmone This is in review https://github.com/jenkinsci/build-blocker-plugin/pull/22 Can you take a look at it ? Regards,

            jonesbusy Valentin Delaye
            jonesbusy Valentin Delaye
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: