<div dir="ltr">Hi Chris,<div>This workflow is pretty common CI. </div><div>Buildbot is perfectly suited to implement it. The framework</div><div><br></div><div>1) If you have arbitrary branch name, you would use a single AnyBranchScheduler, and then use the "branch" property to figure out your working directory/</div><div><br></div><div>2) If you have a predefined set of branches (e.g prod, staging, mainline), then you might want to create one builder per branch, and then use a branch filter to choose which branch goes to which builder.</div><div><br></div><div>In anycase you would need one change source, whether its the basic gitpoller or more fancy gerrit/github/gitlab change sources.<br></div><div><br></div><div>If you want to update JIRA based on the results you can do that using the JIRA REST api, in one of your final steps and python tool like requests. buildbot does not have any out of the box tool to update JIRA<br>How you get the value of the JIRA request depends on the detail of your workflow.</div><div><br></div><div><br></div><div>HTH,</div><div>Pierre<br><div class="gmail_quote"><div dir="ltr">Le jeu. 3 déc. 2015 à 22:54, Chris Spencer <<a href="mailto:chrisspen@gmail.com" target="_blank">chrisspen@gmail.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div><div><div><div><div><div>Hi, I'm new to Buildbot and I'm researching it to see if it'll fit into my dev workflow.<br><br></div>I have unittests that take about 45 minutes to complete. They're a mix of Django and Selenium tests which get run against multiple client configurations. Since they take so long to run, I want to automate the process as much as possible.<br><br></div>I have a small dev team, and all work is done through Git branches. I'd like to configure Buildbot so that whenever someone pushes a change to a "primary" Git repo on Bitbucket, Buildbot will:<br><br></div>1. Checkout the branch.<br></div>2. Create a separate Python virtualenv for that branch (and do nothing if a pip-requirements.txt was not changed since the last run for this branch)<br></div>3. Install system packages from an apt-requirements.txt (just a list of standard Ubuntu packages).<br></div>4. Run Django's `manage.py test <list of apps>` to run all tests, and email the branch's last committer if an error occurred.<br></div>5. If another commit is made while the tests are running, the ongoing tests should be aborted, and restarted.<br></div>6. Publish the test results in a Jira ticket associated with the branch.<br><br></div>Is this something that's within Buildbot's wheelhouse? I'm reading through the intro docs now, but I'm not finding anything about setting it up to poll and test every single branch in your repo.<br><br></div>Regards,<br></div>Chris<br></div>
_______________________________________________<br>
users mailing list<br>
<a href="mailto:users@buildbot.net" target="_blank">users@buildbot.net</a><br>
<a href="https://lists.buildbot.net/mailman/listinfo/users" rel="noreferrer" target="_blank">https://lists.buildbot.net/mailman/listinfo/users</a></blockquote></div></div></div>