diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..0d5a2b1 --- /dev/null +++ b/Jenkinsfile @@ -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' + } + } + } +} +