Skip to content

Instantly share code, notes, and snippets.

@ianjensenisme
Created October 28, 2022 21:53
Show Gist options
  • Save ianjensenisme/fd257ab4eca1606c077d439afd54dc63 to your computer and use it in GitHub Desktop.
Save ianjensenisme/fd257ab4eca1606c077d439afd54dc63 to your computer and use it in GitHub Desktop.
Azure-pipeline-xpp.yaml
# Name must be in #.#.#.# format for X++ tasks
name: $(Date:yy.MM.dd)$(Rev:.r)
trigger:
- main
pool:
name: Azure Pipelines
vmImage: 'windows-2022'
demands:s
- msbuild
- visualstudio
variables:
MetadataPath: '$(Build.SourcesDirectory)\src\xplusplus\Models'
NugetConfigsPath: '$(Build.SourcesDirectory)\src\xplusplus\XppBuild'
XppModelSolution: 'src/xplusplus/xppBuild/<your solution name here>.sln'
stages:
- stage: buildxppmodel
displayName: 'Build XPP Model'
dependsOn: []
jobs:
- template: templates/jobs-xpp-build.yaml
parameters:
jobName: 'buildxppallmodels'
displayName: 'Build X++ All Models'
xppModelSolution: '$(XppModelSolution)'
metadataPath: '$(MetadataPath)'
nugetConfigsPath: '$(NugetConfigsPath)'
- template: templates/jobs-xpp-build.yaml
parameters:
jobName: 'buildxppdeploymentpackage'
displayName: 'Build X++ Deployment Package'
xppModelSolution: '$(XppModelSolution)'
metadataPath: '$(MetadataPath)'
nugetConfigsPath: '$(NugetConfigsPath)'
configuration: 'release'
package: 'true'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment