From 0a984320af83d3438da472cb39d46b67595452dd Mon Sep 17 00:00:00 2001 From: CaptainB Date: Sat, 15 Oct 2022 06:49:01 +0800 Subject: [PATCH] =?UTF-8?q?build:=20=E4=BF=AE=E6=94=B9=E6=89=93=E5=8C=85?= =?UTF-8?q?=E6=97=B6=E5=89=8D=E7=AB=AF=E7=9A=84link=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Jenkinsfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index e1d497be21..9e062f77bb 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -29,6 +29,7 @@ pipeline { if (params.buildParent) { BUILD_PARENT = true } + env.FRONTEND_LINK = params.frontendLink env.REVISION = "${REVISION}" env.BUILD_SDK = "${BUILD_SDK}" env.BUILD_PARENT = "${BUILD_PARENT}" @@ -61,6 +62,11 @@ pipeline { java -version ./mvnw install -N -Drevision=${REVISION} --settings ./settings.xml ./mvnw clean install -Drevision=${REVISION} -pl framework,framework/sdk-parent,framework/sdk-parent/domain,framework/sdk-parent/sdk,framework/sdk-parent/xpack-interface --settings ./settings.xml + + # 复制前端代码 + if [ -n ${FRONTEND_LINK} ]; then + cp -r framework/sdk-parent/frontend ${FRONTEND_LINK}/frontend/.npm_tmp + fi ''' } }