@@ -1,10 +1,15 @@
pipeline {
- agent any
-
+ agent {
+ docker {
+ image 'node:16-alpine'
+ args '-p 3000:3000'
+ }
stages {
stage('Build') {
steps {
- echo 'Building..'
+ sh 'npm install'
+ sh 'npm run build:prod'
}
stage('Test') {