From 3dcb226c853960b7afe7e3d3d8ec04171ebbb827 Mon Sep 17 00:00:00 2001 From: primakov Date: Fri, 29 Mar 2024 10:40:00 +0300 Subject: [PATCH] Jenkinsfile pipline --- Jenkinsfile | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index e69de29..cfd8a62 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -0,0 +1,29 @@ +pipeline { + agent { + docker { + image 'node:18' + } + } + + stages { + stage('install') { + steps { + sh 'node -v' + sh 'npm -v' + sh 'npm ci' + } + } + + stage('eslint') { + steps { + sh 'npm run eslint' + } + } + + stage('build') { + steps { + sh 'npm run build:prod' + } + } + } +} \ No newline at end of file