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' + } } } }