From 1450f9bdc6a0b6525d207538f0f8862bdaf5febf Mon Sep 17 00:00:00 2001 From: archer <2232502139@qq.com> Date: Wed, 3 Feb 2021 15:51:21 +0800 Subject: [PATCH] fix 5.0 jenkinsfile (#482) * fix 5.0 jenkinsfile * update windows jenkins file Co-authored-by: zhaojinpeng --- jenkins/windows.jenkinsfile | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/jenkins/windows.jenkinsfile b/jenkins/windows.jenkinsfile index 1d270ee9f..2ee81adcb 100644 --- a/jenkins/windows.jenkinsfile +++ b/jenkins/windows.jenkinsfile @@ -15,18 +15,27 @@ pipeline { timeout(time: 40, unit: "MINUTES") } stages { + stage("init paramters"){ + steps { + script { + if (env.CHANGE_TARGET == null){ + env.CHANGE_TARGET = env.GIT_BRANCH + } + } + } + } stage("BuildAndEnv"){ parallel { stage("build") { agent{ node { label "windows" - customWorkspace "$env.windowsCIPath/src" + customWorkspace "${env.windowsCIPathBranch}_${env.CHANGE_TARGET}/src" } } steps { echo "$GIT_COMMIT" - bat "%windowsCIPath%/buildSdk.bat %GIT_COMMIT%" + bat "%windowsCIPathBranch%_%CHANGE_TARGET%/buildSdk.bat %GIT_COMMIT%" } } stage("startMcu") {