2022-06-08 17:35:09 +00:00
|
|
|
pipeline {
|
2022-06-09 07:45:33 +00:00
|
|
|
agent any
|
|
|
|
tools {
|
|
|
|
nodejs "node"
|
|
|
|
}
|
|
|
|
stages {
|
|
|
|
stage('NPM Install') {
|
|
|
|
steps {
|
|
|
|
sh 'npm install'
|
|
|
|
}
|
2022-06-08 17:35:09 +00:00
|
|
|
}
|
2022-06-09 07:45:33 +00:00
|
|
|
|
|
|
|
// stage('Test') {
|
|
|
|
// steps {
|
|
|
|
// sh 'npm run ng test --progress=false --watch false'
|
|
|
|
// junit '**/test-results.xml'
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
|
2022-06-09 11:44:35 +00:00
|
|
|
// stage('Lint') {
|
|
|
|
// steps {
|
|
|
|
// sh 'npm run ng lint'
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
|
|
|
|
stage('Build') {
|
2022-06-09 07:45:33 +00:00
|
|
|
steps {
|
2022-06-09 11:44:35 +00:00
|
|
|
sh 'npm run ng build --prod --aot --sm --progress=false'
|
2022-06-09 07:45:33 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-06-09 11:44:35 +00:00
|
|
|
stage('Build Dockerfile') {
|
2022-06-09 07:45:33 +00:00
|
|
|
steps {
|
2022-06-09 11:44:35 +00:00
|
|
|
sh 'docker build . -t schedulord-frontend'
|
2022-06-09 07:45:33 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|