-
Notifications
You must be signed in to change notification settings - Fork 82
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 #171 from microsoft/apudovkin-ms-1ES-PT
Update azure-pipelines.yml
- Loading branch information
Showing
1 changed file
with
46 additions
and
36 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 |
---|---|---|
@@ -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' |