Skip to content

Commit 107f334

Browse files
committed
JBDS-4198 Use redirects for OpenSHift CLI Download
1 parent 3bf9a1b commit 107f334

File tree

4 files changed

+12
-9
lines changed

4 files changed

+12
-9
lines changed

gulp-tasks/dist-darwin.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ function darwinDist(gulp) {
6565
});
6666

6767
gulp.task('dist', function(){
68-
return runSequence('clean','update-package','dist-simple','dist-bundle','cleanup');
68+
return runSequence('clean','check-requirements','update-package','dist-simple','dist-bundle','cleanup');
6969
});
7070

7171
gulp.task('update-package',['update-requirements'], function() {

requirements-darwin.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"description": "The Open Source Container Application Platform",
2828
"bundle": "yes",
2929
"version": "1.3.1",
30-
"url": "https://github.com/openshift/origin/releases/download/v1.3.1/openshift-origin-client-tools-v1.3.1-2748423-mac.zip",
30+
"url": "https://developers.redhat.com/redirect/to/oc-origin-cli-macos-1.3.1.download",
3131
"filename": "openshift-origin-client-tools-v1.3.1-2748423-mac.zip",
3232
"sha256sum": "252ee8a1ff8a455a9b55aff82f6980dbf28bd75b601414765b4f06f6c1ec370e",
3333
"virusTotalReport": "https://virustotal.com/en/file/252ee8a1ff8a455a9b55aff82f6980dbf28bd75b601414765b4f06f6c1ec370e/analysis/",

requirements-win32.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"description": "The Open Source Container Application Platform",
2828
"bundle": "yes",
2929
"version": "1.3.1",
30-
"url": "https://github.com/openshift/origin/releases/download/v1.3.1/openshift-origin-client-tools-v1.3.1-dad658de7465ba8a234a4fb40b5b446a45a4cee1-windows.zip",
30+
"url": "https://developers.redhat.com/redirect/to/oc-origin-cli-win64-1.3.1.download",
3131
"filename": "openshift-origin-client-tools-v1.3.1-dad658de7465ba8a234a4fb40b5b446a45a4cee1-windows.zip",
3232
"sha256sum": "b90bc1249e7407717b0a0d7f92248ed6926ae0cd27d8fd038e054b866fa84baf",
3333
"virusTotalReport": "https://virustotal.com/en/file/b90bc1249e7407717b0a0d7f92248ed6926ae0cd27d8fd038e054b866fa84baf/analysis/",

test/check-requirements.js

+9-6
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,17 @@ let count = 0;
1010

1111
function checkRequirements() {
1212
for (var attribute in reqs) {
13-
data[attribute] = reqs[attribute].url;
14-
count++;
13+
// sha256 is not set for macOS Java SE
14+
if(reqs[attribute].sha256sum !== '') {
15+
data[attribute] = reqs[attribute].url;
16+
count++;
17+
}
1518
}
1619

1720
//to check if the url looks like it points to what it is supposed to
1821
fileNames['cdk.zip'] = 'cdk';
1922
fileNames['rhel-vagrant-virtualbox.box'] = 'vagrant-virtualbox.box';
20-
fileNames['oc.zip'] = 'openshift-origin-client-tools';
23+
fileNames['oc.zip'] = 'oc-origin-cli';
2124
fileNames['cygwin.exe'] = 'cygwin';
2225
fileNames['jbds.jar'] = 'devstudio';
2326
fileNames['jdk.msi'] = 'openjdk';
@@ -26,15 +29,15 @@ function checkRequirements() {
2629
fileNames['7zip.zip'] = '7-Zip';
2730
fileNames['7zip-extra.zip'] = '7-Zip';
2831

29-
//to check if the files are rougly the size the should be
32+
//to check if the files are rougly the size they should be
3033
minSizes['cdk.zip'] = 50 * 1024;
3134
minSizes['rhel-vagrant-virtualbox.box'] = 750 * 1024 * 1024;
3235
minSizes['oc.zip'] = 10 * 1024 * 1024;
3336
minSizes['cygwin.exe'] = 500 * 1024;
3437
minSizes['jbds.jar'] = 400 * 1024 * 1024;
3538
minSizes['jdk.msi'] = 50 * 1024 *1024;
36-
minSizes['vagrant.msi'] = 120 * 1024 * 1024;
37-
minSizes['virtualbox.exe'] = 100 * 1024 * 1024;
39+
minSizes['vagrant.msi'] = 80 * 1024 * 1024;
40+
minSizes['virtualbox.exe'] = 85 * 1024 * 1024;
3841
minSizes['7zip.zip'] = 200 * 1024;
3942
minSizes['7zip-extra.zip'] = 400 * 1024;
4043

0 commit comments

Comments
 (0)