Skip to content

[ci] clean source directory at the beginning of every Azure DevOps build #6416

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 26 commits into from
Apr 19, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
install git
  • Loading branch information
jameslamb committed Apr 16, 2024
commit 647e895057129edf8d349b3b26dd9038be7a7f3d
2 changes: 2 additions & 0 deletions .vsts-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ jobs:
echo "##vso[task.prependpath]$CONDA/bin"
displayName: 'Set variables'
- script: |
apt-get update
apt-get install -y --no-install-recommends git
git clean -d -f -x
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@shiyu1994 we are only running one agent per machine in the linux pool for Azure DevOps, right?

I saw that it's possible to run multiple (Azure Pipelines Agents docs).

If we were running multiple agents on the same virtual machine, then destructive actions like git clean like this might cause conflicts between different jobs.

displayName: 'Clean build directories left over from previous runs'
- script: |
Expand Down