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

Commit

Permalink
fix 5.0 jenkinsfile (#482)
Browse files Browse the repository at this point in the history
* fix 5.0 jenkinsfile

* update windows jenkins file

Co-authored-by: zhaojinpeng <[email protected]>
  • Loading branch information
GaoMingKai and cisco66666 authored Feb 3, 2021
1 parent d73ea4c commit 1450f9b
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions jenkins/windows.jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -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") {
Expand Down

0 comments on commit 1450f9b

Please sign in to comment.