azure-devops-go-api/azure-pipelines.yml

53 строки
1.5 KiB
YAML

# This Yaml Document has been converted by ESAI Yaml Pipeline Conversion Tool.
# Please make sure to check all the converted content, it is your team's responsibility to make sure that the pipeline is still valid and functions as expected.
# This pipeline will be extended to the MicroBuild template
trigger:
- dev
schedules:
- cron: "0 2 15 * *"
displayName: "Monthly Run"
branches:
include:
- dev
always: true
resources:
repositories:
- repository: MicroBuildTemplate
type: git
name: 1ESPipelineTemplates/MicroBuildTemplate
ref: refs/tags/release
extends:
template: azure-pipelines/MicroBuild.1ES.Official.yml@MicroBuildTemplate
parameters:
sdl:
sourceAnalysisPool: 1ESPtTfsAgentBuildPoolSDL
pool:
name: Azure-Pipelines-1ESPT-ExDShared
customBuildTags:
- ES365AIMigrationTooling
stages:
- stage: stage
jobs:
- job: job
pool:
name: 1ES-Shared-Hosted-Pool_Linux-Mariner-2
os: linux
vmImage: 'ubuntu-latest'
steps:
- task: GoTool@0
inputs:
version: '1.13.5'
- task: Go@0
inputs:
command: 'get'
arguments: '-d'
workingDirectory: '$(System.DefaultWorkingDirectory)/azuredevops'
- task: Go@0
inputs:
command: 'clean'
workingDirectory: '$(System.DefaultWorkingDirectory)/azuredevops'
- task: Go@0
inputs:
command: 'build'
workingDirectory: '$(System.DefaultWorkingDirectory)/azuredevops'