Closed Bug 819487 Opened 12 years ago Closed 10 years ago

Add sendchange functionality to the mozharness library

Categories

(Release Engineering :: Applications: MozharnessCore, defect, P3)

x86
macOS
defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: armenzg, Unassigned)

Details

(Whiteboard: [mozharness])

I added this functionality to b2g_build.py but it would be nice if it was a function up there in one of the parental classes or mixins.

Low priority.

http://hg.mozilla.org/build/mozharness/file/72080d75bfcc/scripts/b2g_build.py#l637
            if self.config["target"] == "panda" and self.config.get('sendchange_masters'):
                buildbot = self.query_exe("buildbot", return_type="list")
                sendchange = [ 
                    'sendchange',
                    '--master', self.config.get("sendchange_masters")[0],
                    '--username', 'sendchange-unittest',
                    '--branch', '%s-b2g_panda-opt-unittest' % self.buildbot_config["properties"]["branch"],
                ]   
                if self.buildbot_config['sourcestamp'].get("revision"):
                    sendchange += ['-r', self.buildbot_config['sourcestamp']["revision"]]
                if len(self.buildbot_config['sourcestamp']['changes']) > 0:
                    if self.buildbot_config['sourcestamp']['changes'][0].get('who'):
                        sendchange += ['--who', self.buildbot_config['sourcestamp']['changes'][0]['who']]
                    if self.buildbot_config['sourcestamp']['changes'][0].get('comments'):
                        sendchange += ['--comments', self.buildbot_config['sourcestamp']['changes'][0]['comments']]
                if self.buildbot_config["properties"].get("builduid"):
                    sendchange += ['--property', "builduid:%s" % self.buildbot_config["properties"]["builduid"]]
                sendchange += [
                    '--property', "buildid:%s" % self.query_buildid(),
                    '--property', 'pgo_build:False',
                    download_url
                ]   
                retcode = self.run_command(
                    buildbot + sendchange
                )
Product: mozilla.org → Release Engineering
Looks like Jordan added this:
http://mxr.mozilla.org/build-central/source/mozharness/mozharness/mozilla/buildbot.py#142
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Component: General Automation → Mozharness
You need to log in before you can comment on or make changes to this bug.