Last active
June 30, 2019 17:42
-
-
Save goyalmohit/95687f3bd34bbc3d5af7e1764a1fa5c8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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