Commit 198839d 1 parent e81ae17 commit 198839d Copy full SHA for 198839d
File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -87,13 +87,17 @@ jobs:
87
87
workingDirectory: $(Pipeline.Workspace)/s/assemblyline-ui
88
88
- script : |
89
89
# Try to checkout the matching branch, if the command fails, don't care.
90
- git checkout -b $(Build.SourceBranchName) -t origin/$(Build.SourceBranchName) || true
90
+ export BRANCH_NAME=$(basename -- "$SYSTEM_PULLREQUEST_SOURCEBRANCH")
91
+ export BRANCH_NAME=${BRANCH_NAME:-"$BUILD_SOURCEBRANCHNAME"}
92
+ git checkout -b $BRANCH_NAME -t origin/$BRANCH_NAME || true
91
93
sudo env "PATH=$PATH" python -m pip install --no-cache-dir -e .
92
94
displayName: Install assemblyline
93
95
workingDirectory: $(Pipeline.Workspace)/s/assemblyline-base
94
96
- script : |
95
97
# Try to checkout the matching branch, if the command fails, don't care.
96
- git checkout -b $(Build.SourceBranchName) -t origin/$(Build.SourceBranchName) || true
98
+ export BRANCH_NAME=$(basename -- "$SYSTEM_PULLREQUEST_SOURCEBRANCH")
99
+ export BRANCH_NAME=${BRANCH_NAME:-"$BUILD_SOURCEBRANCHNAME"}
100
+ git checkout -b $BRANCH_NAME -t origin/$BRANCH_NAME || true
97
101
sudo env "PATH=$PATH" python -m pip install --no-cache-dir -e .
98
102
displayName: Install assemblyline-core
99
103
workingDirectory: $(Pipeline.Workspace)/s/assemblyline-core
You can’t perform that action at this time.
0 commit comments