-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #335 from Tatsinnit/poc/az-pipeline
- Loading branch information
Showing
1 changed file
with
59 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
################################################################################# | ||
# OneBranch Pipelines # | ||
# This pipeline was created by EasyStart from a sample located at: # | ||
# https://aka.ms/obpipelines/easystart/samples # | ||
# Documentation: https://aka.ms/obpipelines # | ||
# Yaml Schema: https://aka.ms/obpipelines/yaml/schema # | ||
# Retail Tasks: https://aka.ms/obpipelines/tasks # | ||
# Support: https://aka.ms/onebranchsup # | ||
################################################################################# | ||
|
||
trigger: none | ||
|
||
variables: | ||
CDP_DEFINITION_BUILD_COUNT: $[counter('', 0)] # needed for onebranch.pipeline.version task https://aka.ms/obpipelines/versioning | ||
|
||
resources: | ||
repositories: | ||
- repository: templates | ||
type: git | ||
name: OneBranch.Pipelines/GovernedTemplates | ||
ref: refs/heads/main | ||
|
||
extends: | ||
template: v2/OneBranch.NonOfficial.CrossPlat.yml@templates # https://aka.ms/obpipelines/templates | ||
parameters: | ||
globalSdl: # https://aka.ms/obpipelines/sdl | ||
# tsa: | ||
# enabled: true # SDL results of non-official builds aren't uploaded to TSA by default. | ||
# credscan: | ||
# suppressionsFile: $(Build.SourcesDirectory)\.config\CredScanSuppressions.json | ||
policheck: | ||
break: true # always break the build on policheck issues. You can disable it by setting to 'false' | ||
# suppression: | ||
# suppressionFile: $(Build.SourcesDirectory)\.gdn\global.gdnsuppress | ||
|
||
stages: | ||
- stage: linux_stage | ||
jobs: | ||
- job: linux_job | ||
pool: | ||
type: linux | ||
|
||
variables: # More settings at https://aka.ms/obpipelines/yaml/jobs | ||
ob_outputDirectory: '$(Build.SourcesDirectory)/out' # this directory is uploaded to pipeline artifacts, reddog and cloudvault. More info at https://aka.ms/obpipelines/artifacts | ||
|
||
steps: # These steps will be run in unrestricted container's network | ||
- task: onebranch.pipeline.version@1 | ||
displayName: 'Setup BuildNumber' | ||
inputs: | ||
system: 'RevisionCounter' | ||
major: '1' | ||
minor: '0' | ||
exclude_commit: true | ||
- task: onebranch.pipeline.containercontrol@1 | ||
displayName: "Login to acr" | ||
inputs: | ||
command: login | ||
acr_name: pocaksperitest | ||
endpoint: pocaksperitest |