Skip to content

Commit

Permalink
Add conditional to OneLocBuild example template (#7903)
Browse files Browse the repository at this point in the history
Just to make sure people do it right
  • Loading branch information
jonfortescue authored Sep 21, 2021
1 parent 44d5fbe commit 9a1aa97
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Documentation/OneLocBuild.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,11 @@ The most basic structure for calling the OneLocBuild template is:

```yaml
jobs:
- template: /eng/common/templates/job/onelocbuild.yml
parameters:
LclSource: lclFilesfromPackage
LclPackageId: 'LCL-PACKAGE-ID'
- ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest'), eq(variables['Build.SourceBranch'], 'refs/heads/main')) }}:
- template: /eng/common/templates/job/onelocbuild.yml
parameters:
LclSource: lclFilesfromPackage
LclPackageId: 'LCL-PACKAGE-ID'
```

The parameters that can be passed to the template are as follows:
Expand Down

0 comments on commit 9a1aa97

Please sign in to comment.