Jenkins config nodejs

- added nodejs version
master
Trivernis 5 years ago
parent bea2e22519
commit edf2fee7e0

4
Jenkinsfile vendored

@ -5,7 +5,7 @@ pipeline {
stage('Stylecheck') { stage('Stylecheck') {
steps { steps {
echo 'Checking Style...' echo 'Checking Style...'
nodejs { nodejs(nodeJSInstallationName: 'Node 12.x') {
sh 'npm i' sh 'npm i'
sh 'npm i tslint --dev' sh 'npm i tslint --dev'
sh 'tslint src/**/*.ts' sh 'tslint src/**/*.ts'
@ -15,7 +15,7 @@ pipeline {
stage('Build') { stage('Build') {
steps { steps {
echo 'Building...' echo 'Building...'
nodejs { nodejs(nodeJSInstallationName: 'Node 12.x') {
sh 'ng build --prod' sh 'ng build --prod'
} }
} }

Loading…
Cancel
Save