Skip to content
This repository was archived by the owner on Oct 25, 2024. It is now read-only.

Commit 64d06f1

Browse files
update windows jenkinsfile (#483)
Co-authored-by: zhaojinpeng <[email protected]>
1 parent d73ea4c commit 64d06f1

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

jenkins/windows.jenkinsfile

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,27 @@ pipeline {
1515
timeout(time: 40, unit: "MINUTES")
1616
}
1717
stages {
18+
stage("init paramters"){
19+
steps {
20+
script {
21+
if (env.CHANGE_TARGET == null){
22+
env.CHANGE_TARGET = env.GIT_BRANCH
23+
}
24+
}
25+
}
26+
}
1827
stage("BuildAndEnv"){
1928
parallel {
2029
stage("build") {
2130
agent{
2231
node {
2332
label "windows"
24-
customWorkspace "$env.windowsCIPath/src"
33+
customWorkspace "${env.windowsCIPathBranch}_${env.CHANGE_TARGET}/src"
2534
}
2635
}
2736
steps {
2837
echo "$GIT_COMMIT"
29-
bat "%windowsCIPath%/buildSdk.bat %GIT_COMMIT%"
38+
bat "%windowsCIPathBranch%_%CHANGE_TARGET%/buildSdk.bat %GIT_COMMIT%"
3039
}
3140
}
3241
stage("startMcu") {
@@ -124,4 +133,3 @@ pipeline {
124133
}
125134
}
126135
}
127-

0 commit comments

Comments
 (0)