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

Update bug(s) when a job finishes

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Major Major
    • bugzilla-plugin
    • None

      Tools like SCMBug can add comments to a bug after a commit. However, if that commit triggers a build in Hudson, there is currently no way for Hudson to automatically update the bug after the build is done.

      There should be a Post-build Action called "Bugzilla Notification." Since you can only define one Bugzilla instance globally, you would define conditional bug updates globally. The Post-build Action would consist of a single checkbox, and checking it would cause Hudson process the conditions and run the updates for each applicable bug.

      The following changes could be made to bugs (as a single transaction).

      • Add comment: [___]
      • Update field [___v]...
        • (dropdown field) Change to: [___v]
        • (freeform field) Replace with: [___]
        • (freeform field) Append: [___]

      You'd want macros available for revision number, bug number, build status, and all that.

      By default, the bug changes would always take place. However, there could be optional conditions.

      • Build result is: [___v]
      • Build parameter [___v] is: [___]
      • Bug status is: [___v]
      • SCM commit message...
        • contains text: [___]
        • matches regex: [___]

      Since there are multiple conditions, we might also want the option to add multiple separate actions. This way, you can say "take action 1 if these conditions are true, but take action 2 if these other conditions are true..."

      I realize this is very ambitious, but it would be really helpful!

            mdonohue mdonohue
            malfunction84 Mark Lewis
            Votes:
            6 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: