Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
xwjiang-ms committed Jan 7, 2025
1 parent 2980f3e commit 52e232b
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .azure-pipelines/azure-pipelines-image-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,20 +48,22 @@ jobs:
fetchDepth: 0
condition: and(succeeded(), eq(variables.SKIP_CHECKOUT, ''))
displayName: 'Checkout code'
- script: |
if [ -n "${{ parameters.COMMIT_ID }}" and -n "${{ parameters.SUBMODULE_NAME }}"]; then
git submodule update --init --recursive
cd src/${{ parameters.SUBMODULE_NAME }}
git checkout ${{ parameters.COMMIT_ID }}
cd ../../
fi
- script: |
set -x
sudo setfacl -R -b $(Agent.BuildDirectory)
displayName: 'setfacl'
- script: |
BRANCH_NAME=$(Build.SourceBranchName)
if [ -n "$SYSTEM_PULLREQUEST_PULLREQUESTID" ]; then
BRANCH_NAME="$SYSTEM_PULLREQUEST_TARGETBRANCH-$SYSTEM_PULLREQUEST_PULLREQUESTNUMBER"
git checkout -b $BRANCH_NAME
elif [ -n "${{ parameters.COMMIT_ID }}" and -n "${{ parameters.SUBMODULE_NAME }}"]; then
git submodule update --init --recursive
cd src/${{ parameters.SUBMODULE_NAME }}
git checkout ${{ parameters.COMMIT_ID }}
[ -n "$SYSTEM_PULLREQUEST_PULLREQUESTID" ] && BRANCH_NAME="$SYSTEM_PULLREQUEST_TARGETBRANCH-$SYSTEM_PULLREQUEST_PULLREQUESTNUMBER"
fi
git checkout -b $BRANCH_NAME
sudo modprobe overlay
sudo apt-get install -y acl
sudo bash -c "echo 1 > /proc/sys/vm/compact_memory"
Expand Down

0 comments on commit 52e232b

Please sign in to comment.