From b84b0a4dc60f4a2f7addae074e25389aec189c15 Mon Sep 17 00:00:00 2001 From: Sr Izan <66965250+SrIzan10@users.noreply.github.com> Date: Sun, 9 Apr 2023 15:09:15 +0200 Subject: [PATCH] fix: builds (test 1) --- Jenkinsfile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 15f102b..75bc70f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,12 +1,15 @@ pipeline { agent any - tools { nodejs "NodeJS (sern snippets)" } + tools { nodejs "NodeJS" } stages { stage('Build VSCode extension') { + when { + expression { env.BRANCH_NAME == 'main' } + } steps { // Clone the repository that contains the VSCode extension - git branch: 'jenkins-testing', url: 'https://github.com/sern-handler/snippets.git' + git branch: 'main', url: 'https://github.com/sern-handler/snippets.git' // Install dependencies sh 'npm install'