Jenkins config dependencies

- added extra task to install dependencies for time tracking
master
Trivernis 5 years ago
parent c3ed16b239
commit 481de04ee5

13
Jenkinsfile vendored

@ -2,12 +2,20 @@ pipeline {
agent any
stages {
stage('Dependencies') {
steps {
echo 'Installing Dependencies...'
nodejs(nodeJSInstallationName: 'Node 12.x') {
sh 'npm i @angular/cli'
sh 'npm i'
sh 'tslint "src/**/*.ts"'
}
}
}
stage('Stylecheck') {
steps {
echo 'Checking Style...'
nodejs(nodeJSInstallationName: 'Node 12.x') {
sh 'npm i'
sh 'npm i typescript tslint'
sh 'tslint "src/**/*.ts"'
}
}
@ -16,7 +24,6 @@ pipeline {
steps {
echo 'Building...'
nodejs(nodeJSInstallationName: 'Node 12.x') {
sh 'npm i @angular/cli'
sh 'ng build --prod'
}
}

Loading…
Cancel
Save