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:
Tom Prince 2020-02-27 21:30:34 +00:00
Родитель dc2162a622
Коммит e797b75c9a
1 изменённых файлов: 1 добавлений и 4 удалений

Просмотреть файл

@ -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()