From e5b2ed0b8a37051638073135dfd387147aa049cf Mon Sep 17 00:00:00 2001 From: Enrique Mingorance Cano Date: Thu, 7 Nov 2019 15:38:28 +0100 Subject: [PATCH] BXMSPROD-560 Revert "Remove yarn.lock (#20)" yarn.lock entry removed from .gitignore (#32) * Revert "Remove yarn.lock (#20)" This reverts commit d82abf9fbf5c5bef202ff6472110d5fa42df7b5d. BXMSPROD-560 * yarn.lock entry removed from .gitignore * Jenkinsfile updated to run lock-treatment-tool * BXMSPROD-560 lock-treatment-tool globally installed * BXMSPROD-560 locktt execution moved to 'Build kogito-tooling' step * BXMSPROD-560 yarn.lock updated according to the master changes * BXMSPROD-560 yarn.lock file removed --- .gitignore | 3 +-- Jenkinsfile | 2 ++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 59a986630d8..b5d49368421 100644 --- a/.gitignore +++ b/.gitignore @@ -6,6 +6,5 @@ out/ .idea **/.DS_Store *.log -yarn.lock packages/unpacked-gwt-editors/dmn -packages/unpacked-gwt-editors/bpmn \ No newline at end of file +packages/unpacked-gwt-editors/bpmn diff --git a/Jenkinsfile b/Jenkinsfile index bfb76173791..41e61d80f5e 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -22,6 +22,7 @@ pipeline { } stage('Prepare') { steps { + sh "npm install -g lock-treatment-tool --registry=${NPM_REGISTRY_URL}" sh "npm install -g yarn --registry=${NPM_REGISTRY_URL}" sh "yarn config set registry ${NPM_REGISTRY_URL}" sh "export XAUTHORITY=$HOME/.Xauthority" @@ -34,6 +35,7 @@ pipeline { script { githubscm.checkoutIfExists('kogito-tooling', "$CHANGE_AUTHOR", "$CHANGE_BRANCH", 'kiegroup', "$CHANGE_TARGET") wrap([$class: 'Xvnc', takeScreenshot: false, useXauthority: true]) { + sh "locktt --registry=${NPM_REGISTRY_URL}" sh('yarn run init && yarn build:prod') } }