Jenkins config nodejs

- added nodejs plugin and config
master
Trivernis 5 years ago
parent 02db6bd65b
commit bea2e22519

4
Jenkinsfile vendored

@ -5,16 +5,20 @@ pipeline {
stage('Stylecheck') { stage('Stylecheck') {
steps { steps {
echo 'Checking Style...' echo 'Checking Style...'
nodejs {
sh 'npm i' sh 'npm i'
sh 'npm i tslint --dev' sh 'npm i tslint --dev'
sh 'tslint src/**/*.ts' sh 'tslint src/**/*.ts'
} }
} }
}
stage('Build') { stage('Build') {
steps { steps {
echo 'Building...' echo 'Building...'
nodejs {
sh 'ng build --prod' sh 'ng build --prod'
} }
} }
} }
} }
}

Loading…
Cancel
Save