Integrate JIRA with automated build process

XMLWordPrintable

    • Type: Suggestion
    • Resolution: Won't Do
    • None
    • Component/s: None
    • None

      NOTE: This suggestion is for JIRA Server. Using JIRA Cloud? See the corresponding suggestion.

      (from jira-user mailing list):

      Hi All,

      I wrote a quick and dirty little class to integrate JIRA with our
      existing build notification process and figured I'd share it in case
      anyone is looking to do something similar.

      Our build process is designed to send out an email when it is complete
      and included in the email is all the issues that were fixed in that
      build. This is primarily for the benefit of our QA department. Anyway I included a sample pic of what the email looks like (basically mimics JIRA). The class also updates a custom field that we use for the build number.

      There is some stuff that is specific to the way my company works so you would need to make some changes before using this. I did try to
      externalize most parameters into a props file, at least to make it
      useable by multiple projects without recompiling, but there is still
      stuff that needs changing (like the base JIRA url) in the code.

      Anyway, if nothing else I figure its starting point for anyone else that might have the same kind of automatted processes.

      -Chris

      Ps. You'll also need to grab the MailMessage class from
      www.servlets.com.

        1. sample.gif
          54 kB
          Scott Farquhar
        2. buildtrecs.properties
          0.4 kB
          Scott Farquhar
        3. AutoBuildNotificationMain.java
          18 kB
          Scott Farquhar

            Assignee:
            Unassigned
            Reporter:
            Scott Farquhar
            Votes:
            9 Vote for this issue
            Watchers:
            14 Start watching this issue

              Created:
              Updated:
              Resolved: