Linking BuildBot and JIRA for build tracking

Hey everyone,

I’m trying to connect our BuildBot system with JIRA for better build tracking. We use BuildBot for continuous builds and JIRA for bug tracking. I want to add two dropdown fields in JIRA:

  1. Build Where Issue Found: A list of past builds for QA to pick from
  2. Build for Fix: A list of upcoming builds for devs to choose where the fix will be

I want to make these fields required too. I’ve looked everywhere but can’t find any info on how to do this.

We’re using JIRA 5.2 and BuildBot 0.8.4p2. Has anyone done something like this before? Any tips or complete solutions would be super helpful. Thanks!

# Example of what I'm thinking (not real code)
def update_jira_fields():
    past_builds = get_past_builds(limit=10)
    future_builds = get_future_builds(limit=5)
    
    update_jira_dropdown('Found_In_Build', past_builds)
    update_jira_dropdown('Resolved_In_Build', future_builds)
    
    set_fields_required(['Found_In_Build', 'Resolved_In_Build'])

Let me know if you need more details!

hey sophia, i’ve done smthing similar. u could use jira’s REST API to update those fields. for buildbot, check out their ‘reporters’ feature. it can send build info to external systems.

might need custom scripts to sync data between em. good luck!

I’ve tackled a similar challenge in my previous role. We used JIRA’s REST API to create and update custom fields for build tracking. It’s pretty straightforward once you get the hang of it.

For the BuildBot side, we set up a custom reporter that fired off HTTP requests to our JIRA instance after each build. This kept the build lists up-to-date automatically.

One thing to watch out for is performance. If you’re running lots of builds, you might want to batch your updates or implement some caching to avoid hammering your JIRA server.

Also, make sure you have proper error handling in place. Network issues or API changes can break your integration if you’re not careful.

Overall, it’s a solid approach that really improved our workflow. Just be prepared for some trial and error during setup.

I’ve implemented a similar integration before. The key is leveraging JIRA’s REST API and BuildBot’s reporting capabilities. You’ll need to create custom fields in JIRA for your build dropdowns, then use the API to populate them programmatically. For BuildBot, configure a custom reporter to send build data to JIRA after each build.

Consider using a middleware service to handle the data sync between systems. This can help manage the complexity and ensure reliable updates. You may also want to implement caching to improve performance, especially if you have frequent builds.

Remember to handle error cases and implement proper logging for troubleshooting. Testing thoroughly in a staging environment is crucial before deploying to production.