зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1618079: [tryselect] Use public ship-it api from scriptworker selector; r=rail
Differential Revision: https://phabricator.services.mozilla.com/D64663 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
dc2162a622
Коммит
e797b75c9a
|
@ -71,13 +71,10 @@ class ScriptworkerParser(BaseTryParser):
|
|||
|
||||
def get_releases(branch):
|
||||
response = requests.get(
|
||||
"https://shipit-api.mozilla-releng.net/releases",
|
||||
"https://shipitapi-public.services.mozilla.com/releases",
|
||||
params={"product": "firefox", "branch": branch, "status": "shipped"},
|
||||
headers={"Accept": ["application/json"]},
|
||||
)
|
||||
if response.status_code == 403:
|
||||
print("Cannont connect to ship-it. Are you on the VPN and have shipit access?")
|
||||
sys.exit(1)
|
||||
response.raise_for_status()
|
||||
return response.json()
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче