Welcome to mirror list, hosted at ThFree Co, Russian Federation.

Mdoc-ReleaseCheckCI.yml - github.com/mono/api-doc-tools.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 8b0be5f440f07733092d40e05a5538e46016a04c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
# Starter pipeline
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml

trigger: none
pr:
- main

# Variable 'needRunReleaseMdoc' was defined in the Variables tab
# Variable 'params' was defined in the Variables tab
# Agent Queue 'Azure Pipelines' was used with unrecognized Agent Specification, vmImage property must be specified to determine image - https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/hosted?view=azure-devops&tabs=yaml#software
variables:
  solution: 'apidoctools.sln'
  buildConfiguration: 'Release'
  buildPlatform: 'any cpu'
name: $(date:yyyyMMdd)$(rev:.r)
resources:
  repositories:
  - repository: self
    type: git
    ref: refs/heads/develop
jobs:
- job: Job_1
  displayName: Agent job 1
  timeoutInMinutes: 600
  pool:
    name: Azure Pipelines
    vmImage: windows-2022
  steps:
  - checkout: self
    clean: true
  - task: AzureKeyVault@2
    displayName: 'Azure Key Vault: ReferenceAutomation-Prod'
    inputs:
      ConnectedServiceName: 886728b9-fc93-486c-ba21-26777bea99af
      KeyVaultName: ReferenceAutomation-Prod
    enabled: true
  - task: NuGetAuthenticate@0
    displayName: NuGet Authenticate
  - task: PowerShell@2
    displayName: Compare xml files
    timeoutInMinutes: 600
    inputs:
      filePath: mdoc/compareXmlFiles.ps1
      arguments: -paramsJson '$(params)' -githubTokenBase64 '$(githubTokenBase64)' -githubOptionsAccountName $(githubOptionsAccountName) -githubOptionsAccountEmail $(githubOptionsAccountEmail) -vstsTokenBase64 '$(vstsTokenBase64)' -step '1' -commit1 ''
    enabled: true
    name: job1output
- job: Job_2
  displayName: Agent job2
  timeoutInMinutes: 600
  dependsOn: Job_1
  variables:
      commit1: $[ dependencies.Job_1.outputs['job1output.commit1'] ]
  pool:
    name: Azure Pipelines
    vmImage: windows-2022
  steps:
  - checkout: self
    clean: true
  - task: AzureKeyVault@2
    displayName: 'Azure Key Vault: ReferenceAutomation-Prod'
    inputs:
      ConnectedServiceName: 886728b9-fc93-486c-ba21-26777bea99af
      KeyVaultName: ReferenceAutomation-Prod
    enabled: true
  - task: NuGetToolInstaller@0
    displayName: Use NuGet 4.4.1
    inputs:
      versionSpec: 4.4.1
    enabled: true
  - task: NuGetCommand@2
    displayName: NuGet restore
    inputs:
      solution: $(BuildParameters.solution)
    enabled: true
  - task: CmdLine@2
    displayName: Command Line Script
    inputs:
      script: make prepare
    enabled: true
  - task: VSBuild@1
    displayName: Build solution
    inputs:
      solution: $(solution)
      msbuildArgs: /p:DeployOnBuild=true /p:WebPublishMethod=Package /p:PackageAsSingleFile=true /p:SkipInvalidConfigurations=true /p:PackageLocation="$(build.artifactstagingdirectory)\\"
      platform: $(BuildPlatform)
      configuration: $(BuildConfiguration)
    enabled: true
  - task: NuGetAuthenticate@0
    displayName: NuGet Authenticate
  - task: PowerShell@2
    displayName: Compare xml files
    timeoutInMinutes: 600
    inputs:
      filePath: mdoc/compareXmlFiles.ps1
      arguments: -paramsJson '$(params)' -githubTokenBase64 '$(githubTokenBase64)' -githubOptionsAccountName $(githubOptionsAccountName) -githubOptionsAccountEmail $(githubOptionsAccountEmail) -vstsTokenBase64 '$(vstsTokenBase64)' -step '2' -commit1 '$(commit1)'
    enabled: true
    name: job2output
  - task: PowerShell@2
    displayName: Print Compare Url
    inputs:
      targetType: inline
      script: >-
        # Write your PowerShell commands here.


        Write-Host "Compare Url: $Env:CompareUrl"
...