diff --git a/Jenkinsfile b/Jenkinsfile index 5c53f8a..6f7ffd3 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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' } }