Skip to content

Instantly share code, notes, and snippets.

@goyalmohit
Last active June 30, 2019 17:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save goyalmohit/95687f3bd34bbc3d5af7e1764a1fa5c8 to your computer and use it in GitHub Desktop.
Save goyalmohit/95687f3bd34bbc3d5af7e1764a1fa5c8 to your computer and use it in GitHub Desktop.
# Sample pipeline code to demonstrate scheduling using cron syntax
pool:
name: 'Hosted Ubuntu 1604'
schedules:
- cron: "0 * * * *"
displayName: "hourly build"
branches:
include:
- cron-schedule
always: "true"
- cron: "0 0 * * *"
displayName: "daily midnight build"
branches:
include:
- master
- features/*
exclude:
- features/released/*
- features/archived/*
always: "false"
variables:
buildConfiguration: 'Release'
buildPlatform: 'AnyCPU'
steps:
- script: |
dotnet build --configuration $(buildConfiguration)
dotnet test dotnetcore-tests --configuration $(buildConfiguration) --logger trx
dotnet publish --configuration $(buildConfiguration) --output out
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment