From bea2e225191f10cd7ecd41ceb792c72383a7a4d2 Mon Sep 17 00:00:00 2001 From: Trivernis Date: Thu, 19 Dec 2019 19:24:39 +0100 Subject: [PATCH] Jenkins config nodejs - added nodejs plugin and config --- Jenkinsfile | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index aa7e8c8..4b60814 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -5,15 +5,19 @@ pipeline { stage('Stylecheck') { steps { echo 'Checking Style...' - sh 'npm i' - sh 'npm i tslint --dev' - sh 'tslint src/**/*.ts' + nodejs { + sh 'npm i' + sh 'npm i tslint --dev' + sh 'tslint src/**/*.ts' + } } } stage('Build') { steps { echo 'Building...' - sh 'ng build --prod' + nodejs { + sh 'ng build --prod' + } } } }