From b7fa9901240870f2e39ce4b9cbdfb9b60866b541 Mon Sep 17 00:00:00 2001 From: Maciej Prill Date: Mon, 24 Oct 2022 08:02:17 +0200 Subject: [PATCH] Added Jenkinsfile. --- Jenkinsfile | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Jenkinsfile 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' + } + } + } +} +