Skip to content

Azure DevOps CI pipeline example improvements #27584

Open
@MilanKovacic

Description

Documentation issue

  • Reporting a typo
  • Reporting a documentation bug
  • Documentation improvement
  • Documentation feedback

Is there a specific documentation page you are reporting?

https://nx.dev/ci/recipes/set-up/monorepo-ci-azure

Additional context or description

  1. PR trigger is not universally supported in ADO pipelines: https://learn.microsoft.com/en-us/azure/devops/pipelines/yaml-schema/pr?view=azure-pipelines#remarks. This documentation page should probably be linked in a comment.

  2. Branch name used for the az pipelines CLI (LAST_SHA=$(az pipelines build list --branch $(Build.SourceBranchName)...) is incorrect. ADO incorrectly assumes that the branch name is everything after last "/", which gives wrong results in case prefixes like fix/example are used. See Build.SourceBranchName does not include full name, if name includes forward slash microsoft/azure-pipelines-agent#838 (comment) for an example of a workaround.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions