Added Jenkinsfile.

This commit is contained in:
Maciej Prill 2022-10-24 08:02:17 +02:00
parent d6721f7af3
commit b7fa990124

22
Jenkinsfile vendored Normal file
View File

@ -0,0 +1,22 @@
pipeline {
agent {
docker {
image 'node:19-bullseye-slim'
args '-p 3000:3000'
}
}
environment {
CI = 'true'
NODE_ENV = 'production'
}
stages {
stage('Build') {
steps {
sh 'npm install'
sh 'npm install react-scripts@3.4.1 -g'
sh 'npm clean-install --only=production'
}
}
}
}