From d05bbd6cb8b98c901be72075e19b977bfd3b22b1 Mon Sep 17 00:00:00 2001 From: Danish Arora Date: Tue, 29 Oct 2024 16:01:56 +0530 Subject: [PATCH] fix(buddybook): Jenkinsfile --- ci/Jenkinsfile | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/ci/Jenkinsfile b/ci/Jenkinsfile index 0649381..4c76dbf 100644 --- a/ci/Jenkinsfile +++ b/ci/Jenkinsfile @@ -44,7 +44,7 @@ pipeline { stage('dogfooding') { steps { script { buildExample() } } } stage('message-monitor') { steps { script { buildExample() } } } stage('flush-notes') { steps { script { buildNextJSExample() } } } - stage('buddybook') { steps { script { buildExample() } } } + stage('buddybook') { steps { script { buildViteExample() } } } } } @@ -89,6 +89,16 @@ def buildNextJSExample(example=STAGE_NAME) { } } +def buildViteExample(example=STAGE_NAME) { + def dest = "${WORKSPACE}/build/docs/${example}" + dir("examples/${example}") { + sh 'npm install --silent' + sh 'npm run build' + sh "mkdir -p ${dest}" + sh "cp -r dist/. ${dest}" + } +} + def copyExample(example=STAGE_NAME) { def source = "examples/${example}" def dest = "build/docs/${example}"