Skip to content

Commit

Permalink
Run clean build on dev every midnight UTC. #1272 (#1462)
Browse files Browse the repository at this point in the history
* WIP.

* Schedule for dev every midnight.

* Add comment with link to scheduled triggers docs.

* More comments.
  • Loading branch information
artemii235 committed Sep 7, 2022
1 parent ebb0e81 commit c7dde3a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,16 @@ trigger:
pr: # https://docs.microsoft.com/en-us/azure/devops/pipelines/yaml-schema?view=azure-devops&tabs=schema%2Cparameter-schema#pr-trigger
drafts: false

# https://docs.microsoft.com/ru-ru/azure/devops/pipelines/process/scheduled-triggers?view=azure-devops&tabs=yaml#scheduled-triggers
# Triggers clean checkout to compile from scratch, remove old builds artifacts, and free disk space on CI agents.
# https://github.com/KomodoPlatform/atomicDEX-API/blob/957fd856fb74d462058a5ad47ec46d79e3bf1d83/azure-pipelines-build-stage-job.yml#L20
schedules:
- cron: "0 0 * * *"
displayName: Scheduled clean midnight UTC build
branches:
include:
- dev

stages:
- stage: Lint
displayName: Formatting, Clippy, and other checks
Expand Down

0 comments on commit c7dde3a

Please sign in to comment.