Jenkins config dependencies

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

23
Jenkinsfile vendored

@ -2,21 +2,28 @@ pipeline {
agent any
stages {
stage('Stylecheck') {
steps {
echo 'Checking Style...'
nodejs(nodeJSInstallationName: 'Node 12.x') {
sh 'npm i'
sh 'npm i typescript tslint'
sh 'tslint "src/**/*.ts"'
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 'tslint "src/**/*.ts"'
}
}
}
stage('Build') {
steps {
echo 'Building...'
nodejs(nodeJSInstallationName: 'Node 12.x') {
sh 'npm i @angular/cli'
sh 'ng build --prod'
}
}

Loading…
Cancel
Save