From 437ed4c7b0ee1c2bb54d19b19962e635d12443e0 Mon Sep 17 00:00:00 2001 From: apudovkin-ms Date: Tue, 17 Sep 2024 13:39:23 +0200 Subject: [PATCH] Update azure-pipelines.yml --- azure-pipelines.yml | 82 +++++++++++++++++++++++++-------------------- 1 file changed, 46 insertions(+), 36 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 1123534..8ae4ec1 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -1,39 +1,49 @@ -# Go -# Build your Go project. -# Add steps that test, save build artifacts, deploy, and more: -# https://docs.microsoft.com/azure/devops/pipelines/languages/go - -# This pipeline is mostly for having a CodeQL scanning. We have similar one based in GitHub. Here is the link: https://github.com/microsoft/azure-devops-go-api/blob/master/.github/workflows/go.yml - +# 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 * *" # Runs at 2 AM UTC on the 15th of every month - displayName: "Monthly Run" - branches: - include: - - dev - always: true # Run the pipeline even if there are no code changes - -pool: - 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: 'build' - workingDirectory: '$(System.DefaultWorkingDirectory)/azuredevops' -- task: Go@0 - inputs: - command: 'test' - arguments: '-v' - workingDirectory: '$(System.DefaultWorkingDirectory)/azuredevops' +- 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: + vmImage: 'ubuntu-latest' + customBuildTags: + - ES365AIMigrationTooling + stages: + - stage: stage + jobs: + - job: job + 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: 'build' + workingDirectory: '$(System.DefaultWorkingDirectory)/azuredevops' + - task: Go@0 + inputs: + command: 'test' + arguments: '-v' + workingDirectory: '$(System.DefaultWorkingDirectory)/azuredevops'