Skip to content

Commit

Permalink
[ci] Update version of Azure REST API (#5172)
Browse files Browse the repository at this point in the history
  • Loading branch information
StrikerRUS authored Apr 24, 2022
1 parent 52daf4d commit a52d9c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/_static/js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
});
}
});

0 comments on commit a52d9c3

Please sign in to comment.