Skip to content

Commit db9b1aa

Browse files
Install dev version of Zowe CLI from Artifactory
1 parent db93e0b commit db9b1aa

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

Jenkinsfile

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -199,10 +199,12 @@ pipeline {
199199
steps('Install Zowe CLI') {
200200
timeout(time: 10, unit: 'MINUTES') {
201201
echo "Install Zowe CLI globaly"
202-
sh("npm set registry https://registry.npmjs.org")
203-
sh("npm set @brightside:registry https://api.bintray.com/npm/ca/brightside/")
204-
sh("npm set @zowe:registry https://api.bintray.com/npm/ca/brightside/")
205-
sh("npm install -g @zowe/cli@latest")
202+
sh "rm -f .npmrc"
203+
sh 'curl -u $USERNAME:$API_KEY https://eu.artifactory.swg-devops.com/artifactory/api/npm/auth/ >> .npmrc'
204+
sh "echo registry=$TEST_NPM_REGISTRY >> .npmrc"
205+
sh "echo @brightside:registry=$TEST_NPM_REGISTRY >> .npmrc"
206+
sh "echo @zowe:registry=$TEST_NPM_REGISTRY >> .npmrc"
207+
sh("npm install -g @zowe/cli@cicsdev")
206208
sh("zowe --version")
207209
}
208210
}

0 commit comments

Comments
 (0)