Skip to content

Commit 6a9c3de

Browse files
Add login info to user npmrc
1 parent db9b1aa commit 6a9c3de

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Jenkinsfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -199,11 +199,11 @@ pipeline {
199199
steps('Install Zowe CLI') {
200200
timeout(time: 10, unit: 'MINUTES') {
201201
echo "Install Zowe CLI globaly"
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"
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"
207207
sh("npm install -g @zowe/cli@cicsdev")
208208
sh("zowe --version")
209209
}

0 commit comments

Comments
 (0)