You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
554 B
Groovy
25 lines
554 B
Groovy
pipeline {
|
|
agent any
|
|
|
|
stages {
|
|
stage('Stylecheck') {
|
|
steps {
|
|
echo 'Checking Style...'
|
|
nodejs(nodeJSInstallationName: 'Node 12.x') {
|
|
sh 'npm i'
|
|
sh 'npm i tslint --dev'
|
|
sh 'tslint src/**/*.ts'
|
|
}
|
|
}
|
|
}
|
|
stage('Build') {
|
|
steps {
|
|
echo 'Building...'
|
|
nodejs(nodeJSInstallationName: 'Node 12.x') {
|
|
sh 'ng build --prod'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|