From 0f897bac6893555716e3943edafa29eb06a14c62 Mon Sep 17 00:00:00 2001 From: Nikita Titov Date: Sat, 23 Apr 2022 03:47:12 +0300 Subject: [PATCH] Update version of Azure REST API --- docs/_static/js/script.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/_static/js/script.js b/docs/_static/js/script.js index 467c1d63ba6f..d6f5b4125057 100644 --- a/docs/_static/js/script.js +++ b/docs/_static/js/script.js @@ -62,9 +62,9 @@ $(function() { /* Initialize artifacts badge */ modifyBadge('./_static/images/artifacts-fetching.svg', '#'); /* Fetch latest buildId and construct artifacts badge */ - $.getJSON('https://dev.azure.com/lightgbm-ci/lightgbm-ci/_apis/build/builds?branchName=refs/heads/master&resultFilter=succeeded&queryOrder=finishTimeDescending&%24top=1&api-version=5.0-preview.5', function(data) { + $.getJSON('https://dev.azure.com/lightgbm-ci/lightgbm-ci/_apis/build/builds?branchName=refs/heads/master&resultFilter=succeeded&queryOrder=finishTimeDescending&%24top=1&api-version=7.1-preview.7', function(data) { modifyBadge('./_static/images/artifacts-download.svg', - 'https://dev.azure.com/lightgbm-ci/lightgbm-ci/_apis/build/builds/' + data['value'][0]['id'] + '/artifacts?artifactName=PackageAssets&api-version=5.0-preview.5&%24format=zip'); + 'https://dev.azure.com/lightgbm-ci/lightgbm-ci/_apis/build/builds/' + data['value'][0]['id'] + '/artifacts?artifactName=PackageAssets&api-version=7.1-preview.5&%24format=zip'); }); } });