removed link to jenkins job in a PR
Signed-off-by: Anton Danchenko <ant.danchenko@gmail.com>
This commit is contained in:
parent
2fd3ff798a
commit
cf0afbca14
|
@ -1,11 +0,0 @@
|
||||||
import requests
|
|
||||||
|
|
||||||
|
|
||||||
def get_jenkins_build_url(pr_number: str) -> str:
|
|
||||||
jenkins_api_url = 'https://ci.status.im/job/end-to-end-tests/job/status-app-end-to-end-tests/'
|
|
||||||
builds_list = requests.get(jenkins_api_url + 'api/json?tree=builds[id,url]').json()[
|
|
||||||
'builds']
|
|
||||||
for build in builds_list:
|
|
||||||
data = requests.get('%s/%s/api/json' % (jenkins_api_url, build['id'])).json()
|
|
||||||
if data['displayName'] == 'PR-' + pr_number:
|
|
||||||
return build['url'] + '/console'
|
|
|
@ -10,7 +10,6 @@ from datetime import datetime
|
||||||
from os import environ
|
from os import environ
|
||||||
from io import BytesIO
|
from io import BytesIO
|
||||||
from sauceclient import SauceClient, SauceException
|
from sauceclient import SauceClient, SauceException
|
||||||
from support.api.jenkins_api import get_jenkins_build_url
|
|
||||||
from support.api.network_api import NetworkApi
|
from support.api.network_api import NetworkApi
|
||||||
from support.github_report import GithubHtmlReport
|
from support.github_report import GithubHtmlReport
|
||||||
from support.testrail_report import TestrailReport
|
from support.testrail_report import TestrailReport
|
||||||
|
@ -157,8 +156,7 @@ def pytest_configure(config):
|
||||||
repo = Github(github_token).get_user('status-im').get_repo('status-react')
|
repo = Github(github_token).get_user('status-im').get_repo('status-react')
|
||||||
pull = repo.get_pull(int(pr_number))
|
pull = repo.get_pull(int(pr_number))
|
||||||
pull.get_commits()[0].create_status(state='pending', context='Mobile e2e tests',
|
pull.get_commits()[0].create_status(state='pending', context='Mobile e2e tests',
|
||||||
description='e2e tests are running',
|
description='e2e tests are running')
|
||||||
target_url=get_jenkins_build_url(pr_number))
|
|
||||||
if config.getoption('env') == 'sauce':
|
if config.getoption('env') == 'sauce':
|
||||||
if not is_uploaded():
|
if not is_uploaded():
|
||||||
if 'http' in config.getoption('apk'):
|
if 'http' in config.getoption('apk'):
|
||||||
|
|
Loading…
Reference in New Issue