From 5da10b63c177fa32a95bc167d3c7f3bbb9cddeb0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Han=C3=A1k?= Date: Wed, 23 Oct 2019 12:02:21 +0200 Subject: [PATCH] KOGITO-229: Update Jenkins build to set registry parameter (#24) * 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 --- Jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 689fdf4f3fc..bfb76173791 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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" }