File: daily-dev-build-variable.yml

package info (click to toggle)
python-azure 20201208%2Bgit-6
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,437,920 kB
  • sloc: python: 4,287,452; javascript: 269; makefile: 198; sh: 187; xml: 106
file content (12 lines) | stat: -rw-r--r-- 525 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
# This script fragment is used across our repos to set a variable "SetDevVersion" which
# is used when this pipeline is going to be generating and publishing daily dev builds.

steps:
- pwsh: |
    $setDailyDevBuild = "false"
    if (('$(Build.Reason)' -eq 'Schedule') -and ('$(System.TeamProject)' -eq 'internal')) {
      $setDailyDevBuild = "true"
    }
    echo "##vso[task.setvariable variable=SetDevVersion]$setDailyDevBuild"
  displayName: "Setup Versioning Properties"
  condition: eq(variables['SetDevVersion'], '')