Merge branch 'julius-dev' of Software_Engineering_I/greenvironment-frontend into master
commit
b6d599c49c
@ -0,0 +1,25 @@
|
||||
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('Build') {
|
||||
steps {
|
||||
echo 'Building...'
|
||||
nodejs(nodeJSInstallationName: 'Node 12.x') {
|
||||
sh 'npm i @angular/cli'
|
||||
sh 'ng build --prod'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue