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

Ability to set the GR PR Comment Property for branch jobs created by Organization Item

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • Jenkins 2.60.2
      github-pr-comment-build:2.0

      It would be great if we could use the TriggerPRCommentBranchProperty and TriggerPRUpdateBranchProperty not only in Multibranch Items but also for branch jobs created via Organization Items.

      It is currently not possible to set these property in a GitHub Organization job.
      It is currently not possible to set these property via the properties step because it is a BranchProperty (see JENKINS-30519):

      properties([
      	[$class: 'com.adobe.jenkins.github_pr_comment_build.TriggerPRCommentBranchProperty', commentBody: 'rebuild']
      ])
      

      The above snippet would fail with a ClassCastException.

      Making it usable for Organization jobs would be a great improvement.

          [JENKINS-45678] Ability to set the GR PR Comment Property for branch jobs created by Organization Item

          Allan BURDAJEWICZ created issue -
          Allan BURDAJEWICZ made changes -
          Description Original: It would be great if we could use the _TriggerPRCommentBranchProperty_ and _TriggerPRUpdateBranchProperty_ not only in Multibranch Items but also for branch jobs created via Organization Items.

          It is currently not possible to set these property in a GitHub Organization job.
          It is currently not possible to set these property via the property step because it is a _BranchProperty_ (see [JENKINS-30519|https://issues.jenkins-ci.org/browse/JENKINS-30519]):

          ```
          properties([
          [$class: 'com.adobe.jenkins.github_pr_comment_build.TriggerPRCommentBranchProperty', commentBody: 'rebuild']
          ])
          ```

          Making it usable for Organization jobs would be a great improvement.
          New: It would be great if we could use the _TriggerPRCommentBranchProperty_ and _TriggerPRUpdateBranchProperty_ not only in Multibranch Items but also for branch jobs created via Organization Items.

          It is currently not possible to set these property in a GitHub Organization job.
          It is currently not possible to set these property via the _properties_ step because it is a _BranchProperty_ (see [JENKINS-30519|https://issues.jenkins-ci.org/browse/JENKINS-30519]):

          {code}
          properties([
          [$class: 'com.adobe.jenkins.github_pr_comment_build.TriggerPRCommentBranchProperty', commentBody: 'rebuild']
          ])
          {code}

          The above snippet would fail with a _ClassCastException_.

          Making it usable for Organization jobs would be a great improvement.
          CloudBees Inc. made changes -
          Remote Link New: This issue links to "CloudBees Internal CD-229 (Web Link)" [ 19097 ]

            bksaville Brian Saville
            allan_burdajewicz Allan BURDAJEWICZ
            Votes:
            3 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: