|
|
@ -2,12 +2,20 @@ pipeline {
|
|
|
|
agent any
|
|
|
|
agent any
|
|
|
|
|
|
|
|
|
|
|
|
stages {
|
|
|
|
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') {
|
|
|
|
stage('Stylecheck') {
|
|
|
|
steps {
|
|
|
|
steps {
|
|
|
|
echo 'Checking Style...'
|
|
|
|
echo 'Checking Style...'
|
|
|
|
nodejs(nodeJSInstallationName: 'Node 12.x') {
|
|
|
|
nodejs(nodeJSInstallationName: 'Node 12.x') {
|
|
|
|
sh 'npm i'
|
|
|
|
|
|
|
|
sh 'npm i typescript tslint'
|
|
|
|
|
|
|
|
sh 'tslint "src/**/*.ts"'
|
|
|
|
sh 'tslint "src/**/*.ts"'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -16,7 +24,6 @@ pipeline {
|
|
|
|
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'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|