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

Loading…
Cancel
Save