This is an automated email from the ASF dual-hosted git repository. ofuks pushed a commit to branch sonar in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git
The following commit(s) were added to refs/heads/sonar by this push: new 82c35ed Updated sonar.py 82c35ed is described below commit 82c35eda8ae8119683d199f2cc1cd64b2d060c22 Author: Oleh Fuks <olegfuk...@gmail.com> AuthorDate: Fri Jul 24 18:27:50 2020 +0300 Updated sonar.py --- infrastructure-provisioning/scripts/jenkins/sonar.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/infrastructure-provisioning/scripts/jenkins/sonar.py b/infrastructure-provisioning/scripts/jenkins/sonar.py index be40759..fdf6f22 100644 --- a/infrastructure-provisioning/scripts/jenkins/sonar.py +++ b/infrastructure-provisioning/scripts/jenkins/sonar.py @@ -17,6 +17,10 @@ # under the License. import requests -r = requests.get('https://xkcd.com/1906/') +PROJECT_KEY = 'com.epam.dlab%3Adlab' +TOKEN = 'ca50bcc08f84b90c0324d2e04dcee5f9c5034e67' -print('SUCCESS', r.status_code) +response = requests.get('https://localhost:9000/sonar/api/qualitygates/project_status?projectKey=' + PROJECT_KEY, + auth=(TOKEN, '')).json() + +print('SUCCESS', response['projectStatus']['status']) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@dlab.apache.org For additional commands, e-mail: commits-h...@dlab.apache.org