2021-12-10 20:12:09 +01:00
|
|
|
pipeline {
|
|
|
|
agent {
|
|
|
|
docker {
|
|
|
|
image 'node'
|
|
|
|
}
|
|
|
|
}
|
2021-12-10 22:11:21 +01:00
|
|
|
environment {
|
|
|
|
HOME = '.'
|
|
|
|
}
|
2021-12-10 20:12:09 +01:00
|
|
|
stages {
|
|
|
|
stage('Build') {
|
|
|
|
steps {
|
2021-12-10 22:47:53 +01:00
|
|
|
sh 'npm install --production'
|
2021-12-10 22:46:13 +01:00
|
|
|
sh 'npm run build'
|
|
|
|
sh 'npm run start'
|
2021-12-10 20:12:09 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|