Created
July 16, 2019 12:07
-
-
Save sochotnicky/5cec6639d920e9ac668a0dca5f420e58 to your computer and use it in GitHub Desktop.
aqe_trigger.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import yaml | |
| from buildbot.plugins import steps, util | |
| class AQETrigger(steps.Trigger): | |
| def getSchedulersAndProperties(self): | |
| bbconfig = self.getProperty("bbconfig", "{}") | |
| ret = [] | |
| bbconfig = yaml.safe_load(bbconfig) | |
| print(bbconfig) | |
| if not bbconfig: | |
| return ret | |
| if 'checks' in bbconfig: | |
| for check in bbconfig['checks']: | |
| if 'tox' in check: | |
| ret.append( | |
| { | |
| "sched_name": "tox", | |
| "props_to_set": | |
| { | |
| "tox-env": check['tox']['env'] | |
| }, | |
| "unimportant": False | |
| } | |
| ) | |
| return ret |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment