Skip to content

Commit bb8ce44

Browse files
authored
Merge branch 'master' into master
2 parents 9285b94 + 9ced8ed commit bb8ce44

24 files changed

+546
-518
lines changed

Jenkinsfile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -214,8 +214,10 @@ pipeline {
214214
echo "Install Zowe CLI globaly"
215215
sh "rm -f .npmrc"
216216
sh("npm set registry https://registry.npmjs.org")
217-
sh("npm set @brightside:registry https://api.bintray.com/npm/ca/brightside/")
218-
sh("npm set @zowe:registry https://api.bintray.com/npm/ca/brightside/")
217+
//sh("npm set @brightside:registry https://api.bintray.com/npm/ca/brightside/")
218+
//sh("npm set @zowe:registry https://api.bintray.com/npm/ca/brightside/")
219+
sh("npm set @zowe:registry https://registry.npmjs.org")
220+
219221
sh("npm install -g @zowe/cli@latest")
220222
sh("zowe --version")
221223
}
@@ -596,7 +598,7 @@ pipeline {
596598
sh "rm -f .npmrc"
597599
sh 'curl -u $USERNAME:$API_KEY https://eu.artifactory.swg-devops.com/artifactory/api/npm/auth/ >> .npmrc'
598600
sh "echo registry=$TEST_NPM_REGISTRY >> .npmrc"
599-
sh "echo @zowe:registry=https://api.bintray.com/npm/ca/brightside/ >> .npmrc"
601+
sh "echo @zowe:registry=https://registry.npmjs.org >> .npmrc"
600602
sh "echo @zowe:always-auth=false >> .npmrc"
601603

602604
script {

__tests__/api/BundlePush/BundlePusher.test.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ describe("BundlePusher01", () => {
415415

416416
await runPushTestWithError("__tests__/__resources__/ExampleBundle01", true,
417417
"A problem occurred attempting to run 'if [ \"$(ls)\" ]; then rm -r *; fi' in remote directory '/u/ThisDoesNotExist/12345678'. " +
418-
"Problem is: The output from the remote command implied that an error occurred.");
418+
"Problem is: The output from the remote command implied that an error occurred, return code 1.");
419419

420420
expect(consoleText).toContain("Ssh command exit with non zero status");
421421
expect(zosMFSpy).toHaveBeenCalledTimes(1);
@@ -434,7 +434,7 @@ describe("BundlePusher01", () => {
434434

435435
await runPushTestWithError("__tests__/__resources__/ExampleBundle01", true,
436436
"A problem occurred attempting to run 'if [ \"$(ls)\" ]; then rm -r *; fi' in remote directory '/u/ThisDoesNotExist/12345678'. " +
437-
"Problem is: The output from the remote command implied that an error occurred.");
437+
"Problem is: The output from the remote command implied that an error occurred, return code 127");
438438

439439
expect(consoleText).toContain("Injected FSUM9195 error message");
440440
expect(zosMFSpy).toHaveBeenCalledTimes(1);
@@ -453,7 +453,7 @@ describe("BundlePusher01", () => {
453453

454454
await runPushTestWithError("__tests__/__resources__/ExampleBundle01", true,
455455
"A problem occurred attempting to run 'if [ \"$(ls)\" ]; then rm -r *; fi' in remote directory '/u/ThisDoesNotExist/12345678'. " +
456-
"Problem is: The output from the remote command implied that an error occurred.");
456+
"Problem is: The output from the remote command implied that an error occurred, return code 1.");
457457

458458
expect(consoleText).toContain("Injected FSUM9195 and FSUM9196 error message");
459459
expect(zosMFSpy).toHaveBeenCalledTimes(1);
@@ -647,7 +647,7 @@ describe("BundlePusher01", () => {
647647
await runPushTestWithError("__tests__/__resources__/ExampleBundle01", false,
648648
"A problem occurred attempting to run 'export PATH=\"$PATH:/usr/lpp/IBM/cnj/IBM/node-latest-os390-s390x/bin\" " +
649649
"&& npm install' in remote directory '/u/ThisDoesNotExist/12345678'. " +
650-
"Problem is: The output from the remote command implied that an error occurred.");
650+
"Problem is: The output from the remote command implied that an error occurred, return code 1.");
651651

652652
expect(consoleText).toContain("Injected stdout error message");
653653
expect(zosMFSpy).toHaveBeenCalledTimes(1);
@@ -680,7 +680,7 @@ describe("BundlePusher01", () => {
680680
await runPushTestWithError("__tests__/__resources__/ExampleBundle01", false,
681681
"A problem occurred attempting to run 'export PATH=\"$PATH:/usr/lpp/IBM/cnj/IBM/node-latest-os390-s390x/bin\" " +
682682
"&& npm install' in remote directory '/u/ThisDoesNotExist/12345678'. " +
683-
"Problem is: The output from the remote command implied that an error occurred.");
683+
"Problem is: The output from the remote command implied that an error occurred, return code 1.");
684684

685685
expect(consoleText).toContain("Injected FSUM7351 not found message");
686686
expect(zosMFSpy).toHaveBeenCalledTimes(1);
@@ -713,7 +713,7 @@ describe("BundlePusher01", () => {
713713
await runPushTestWithError("__tests__/__resources__/ExampleBundle01", false,
714714
"A problem occurred attempting to run 'export PATH=\"$PATH:/usr/lpp/IBM/cnj/IBM/node-latest-os390-s390x/bin\" " +
715715
"&& npm install' in remote directory '/u/ThisDoesNotExist/12345678'. " +
716-
"Problem is: The output from the remote command implied that an error occurred.");
716+
"Problem is: The output from the remote command implied that an error occurred, return code 1.");
717717

718718
expect(consoleText).toContain("Injected npm ERR! Exit status 1 message");
719719
expect(zosMFSpy).toHaveBeenCalledTimes(1);

0 commit comments

Comments
 (0)