Skip to content

Commit a221812

Browse files
authored
Fix the issue of change line in cmd task (#19435)
* fix the issue of cmd * fix the issue of cmd Co-authored-by: wyunchi-ms <[email protected]>
1 parent 1e24b12 commit a221812

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.azure-pipelines/code-gen.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,14 @@ jobs:
5858
cp -r ./* ../../artifacts/src/$env:SERVICENAME
5959
pwsh: true
6060
workingDirectory: src/$(ServiceName)
61-
- task: CmdLine@2
61+
- task: PowerShell@2
6262
displayName: Checkout main branch
6363
inputs:
64+
targetType: inline
6465
script: >
65-
RMDIR /Q/S src\%SERVICENAME%
66-
git checkout src\%SERVICENAME%
67-
git checkout -b codegen/%SERVICENAME% origin/%BaseBranch%
66+
mkdir src/$env:SERVICENAME
67+
git checkout src/$env:SERVICENAME
68+
git checkout -b codegen/$env:SERVICENAME origin/$env:BaseBranch
6869
- task: PowerShell@2
6970
displayName: Move code to main
7071
condition: eq(variables.ServiceSubmoduleName, '')

0 commit comments

Comments
 (0)