Skip to content

Commit

Permalink
KOGITO-229: Update Jenkins build to set registry parameter (#24)
Browse files Browse the repository at this point in the history
* Update Jenkins build to set registry parameter

* Add --registry url to relevant places

* Create .npmrc file

* Set yarn config and add file to kogito-tooling dir

* Remove .npmrc creation step

* Remoe registry from yarn run invocations

* Remove duplicate install execution
  • Loading branch information
domhanak authored Oct 23, 2019
1 parent adaba37 commit 5da10b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ pipeline {
}
stage('Prepare') {
steps {
sh "npm install -g yarn"
sh "yarn install"
sh "npm install -g yarn --registry=${NPM_REGISTRY_URL}"
sh "yarn config set registry ${NPM_REGISTRY_URL}"
sh "export XAUTHORITY=$HOME/.Xauthority"
sh "chmod 600 $HOME/.vnc/passwd"
}
Expand Down

0 comments on commit 5da10b6

Please sign in to comment.