From 9352d06e73fc2650f015b7ce9c8e9b792d843692 Mon Sep 17 00:00:00 2001 From: Kataev Denis Date: Tue, 27 Sep 2022 14:17:17 +0400 Subject: [PATCH] =?UTF-8?q?dev=20#12738=20=D0=A1=D0=B4=D0=B5=D0=BB=D0=B0?= =?UTF-8?q?=D0=BB=20=D0=B1=D1=80=D0=B0=D0=BD=D1=87=D1=83=20=D0=B8=20=D0=B4?= =?UTF-8?q?=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB=20=D0=B2=20=D0=BD=D0=B5?= =?UTF-8?q?=D0=B5=20jenkinsfile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Jenkinsfile | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..0d18d1f --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,27 @@ +env.HL_BUILD_MODE = "jenkins" + +node('Rubidium'){ + + stage('get new version to repo') { + dir('/opt/usersite-build'){ + checkout([$class: 'GitSCM', branches: [[name: '*/fashion-logica']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[credentialsId: 'jenkins_all', url: 'https://git.hlcompany.ru/git/usersite.git']]]) + } + } + + stage('build project') { + // sh label: '', script: 'systemctl stop lkcrm4retail' + // dir('/opt/SynthVisionBox/node'){ + // sh label: '', script: 'npm install --only=prod' + // sh label: '', script: 'node db_updater.js' + // } + + dir('/opt/usersite-build'){ + sh label: '', script: 'npm i' + // sh label: '', script: 'npm run build' + sh label: '', script: 'ng build' + } + + // sh label: '', script: 'systemctl start lkcrm4retail' + } + +} \ No newline at end of file