Support both Taskcluster deployments

Part of https://bugzilla.mozilla.org/show_bug.cgi?id=1574648
This commit is contained in:
Simon Sapin 2019-11-03 15:08:44 +01:00
parent 5abb013dfd
commit d8b630779d
4 changed files with 35 additions and 9 deletions

View file

@ -44,6 +44,7 @@ sys.modules["taskcluster"] = sys.modules[__name__]
sys.dont_write_bytecode = True
os.environ.update(**{k: k for k in "TASK_ID TASK_OWNER TASK_SOURCE GIT_URL GIT_SHA".split()})
os.environ["GIT_REF"] = "refs/heads/auto"
os.environ["TASKCLUSTER_ROOT_URL"] = "https://taskcluster.net"
import decision_task
print("\n# Push:")