Skip to content

Commit 3cba3a1

Browse files
committed
JBDS-4005 Use https redirects for cygwin-installer and oc origin cli
1 parent e3ab235 commit 3cba3a1

3 files changed

Lines changed: 7 additions & 16 deletions

File tree

browser/model/cdk.js

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -90,17 +90,8 @@ class CDKInstall extends InstallableItem {
9090

9191
if(!fs.existsSync(path.join(this.downloadFolder, this.ocFileName))) {
9292
let ocWriteStream = fs.createWriteStream(this.ocDownloadedFile);
93-
if(!this.ocUrl.endsWith('.zip')) {
94-
request(this.ocUrl,(err,rsp,body) => {
95-
var fname = body.match(/openshift-origin-client-tools-v\w(\.\w){1,2}-\w{1,3}-\w{8}-\w{7}-windows\.zip/)[0];
96-
this.downloader.setWriteStream(ocWriteStream);
97-
this.ocUrl=this.ocUrl.concat(fname);
98-
this.downloader.download(this.ocUrl);
99-
});
100-
} else {
101-
this.downloader.setWriteStream(ocWriteStream);
102-
this.downloader.download(this.ocUrl);
103-
}
93+
this.downloader.setWriteStream(ocWriteStream);
94+
this.downloader.download(this.ocUrl);
10495
} else {
10596
this.ocDownloadedFile = path.join(this.downloadFolder, this.ocFileName);
10697
this.downloader.closeHandler();

requirements.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
"description": "The Open Source Container Application Platform",
2525
"bundle": "yes",
2626
"version": "1.2.0",
27-
"url": "https://github.com/openshift/origin/releases/download/v1.2.0/openshift-origin-client-tools-v1.2.0-2e62fab-windows.zip",
28-
"filename": "openshift-origin-client-tools-v1.1.6-ef1caba-windows.zip",
27+
"url": "https://developers.redhat.com/redirect/to/oc-origin-cli-1.2.0.download",
28+
"filename": "openshift-origin-client-tools-v1.2.0-2e62fab-windows.zip",
2929
"sha256sum": "3df3d7f31d5f50fa49f94312883107ebee1a0877b598eada32dce1b029f6c3f2",
3030
"vendor": "Red Hat, Inc."
3131
},
@@ -34,8 +34,8 @@
3434
"description": "A distribution of popular GNU and other Open Source tools running on Microsoft Windows",
3535
"bundle": "yes",
3636
"version": "2.5.2",
37-
"url": "https://cygwin.com/setup-x86_64.exe",
38-
"filename": "cygwin_2.5.1_0.297_5_3.exe",
37+
"url": "https://developers.redhat.com/redirect/to/cygwin-installer-2.5.2.download",
38+
"filename": "cygwin_2.5.2.exe",
3939
"sha256sum": "58f9f42f5dbd52c5e3ecd24e537603ee8897ea15176b7acdc34afcef83e5c19a",
4040
"vendor": "Community Project"
4141
},

test/check-requirements.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ function checkRequirements() {
1717
//to check if the url looks like it points to what it is supposed to
1818
fileNames['cdk.zip'] = 'cdk';
1919
fileNames['rhel-vagrant-virtualbox.box'] = 'rhel-cdk';
20-
fileNames['oc.zip'] = 'origin-client-tools';
20+
fileNames['oc.zip'] = 'oc-origin-cli';
2121
fileNames['cygwin.exe'] = 'cygwin';
2222
fileNames['jbds.jar'] = 'devstudio';
2323
fileNames['jdk.msi'] = 'openjdk';

0 commit comments

Comments
 (0)