From 10ac32f86aafe6f9cde48893cbfd778f501f3194 Mon Sep 17 00:00:00 2001 From: dingbo Date: Tue, 14 Jun 2022 09:25:26 +0800 Subject: [PATCH] test: Jekinsfile2 add build docs stage --- Jenkinsfile2 | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/Jenkinsfile2 b/Jenkinsfile2 index fceaa6554f..0ca51b0366 100644 --- a/Jenkinsfile2 +++ b/Jenkinsfile2 @@ -171,6 +171,25 @@ pipeline { ''' } } + stage ('build docs') { + when { + allOf { + changeRequest() + { expression { env.CHANGE_BRANCH =~ /docs\// }} + } + } + agent {label "docusaurus"} + steps { + timeout(time: 5, unit: 'MINUTES') { + sync_source() + script { + sh ''' + echo hello + ''' + } + } + } + } stage ('Parallel build stage') { //only build pr options { skipDefaultCheckout() } -- GitLab