Skip to content

The AzureDevOps Platform Pipeline to set the readme is flawed #960

@AlexanderSehr

Description

@AlexanderSehr

The pipeline (ResourceModules/.azuredevops/platformPipelines/platform.updateReadMe.yml) has 3 issues that must be fixed

  1. The pool reference should be

          ${{ if ne(variables.vmImage, '') }}:
            vmImage: ${{ variables.vmImage }}
          ${{ if ne(variables.poolName, '') }}:
            name: ${{ variables.poolName }}
  2. The input object used in the pipeline did not work at a customer

         $functionInput = @{
              ModulesPath    = Join-Path '$(System.DefaultWorkingDirectory)' 'arm'
              FilePath       = Join-Path '$(System.DefaultWorkingDirectory)' 'arm/README.md'
              Organization   = ('$(Build.Repository.Name)').split('/')[0] # HERE: returned the repo name
              RepositoryName = ('$(Build.Repository.Name)').split('/')[1] # HERE: returned empty
              ColumnsInOrder = @('Name', 'ProviderNamespace','ResourceType')
            }
  1. The pipeline uses the script Set-GitHubReadMeModuleTable @functionInput -Verbose which is not Azure DevOps ready. The script should be updated to take GitHub vs AzureDevOps as an input parameter, should be renamed and also updated accordingly (e.g. the generated module links are all GitHub links)

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions