Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Extend --detect to use environment variables available when running in Azure Pipelines #1368

Open
jessehouwing opened this issue Sep 29, 2023 · 0 comments
Labels
Feature Feature Work required.

Comments

@jessehouwing
Copy link

Is your feature request related to a problem? Please describe.
Azure Pipelines must be one of the key platforms on which az devops is employed. Azure Pipelines sets a number of environment variables that point to the current repository.

It would be nice if --detect would be able to leverage these variables

Describe the solution you'd like

Azure pipelines always sets these two variables:

      --organization $env:SYSTEM_COLLECTIONURI `
      --project $env:SYSTEM_TEAMPROJECT

When using --detect to automatically detect the organization or project, it should pick up these variables.

Why?

  • it's faster than reading the git remote data
  • it's available by default on Azure Pipelines
  • It works in pipelines that have: -checkout: none

Why not?

  • There are cases where people check out a different repo than the one that owns the pipeline (e.g. - checkout: https://github.com/something/something.git). Those workflows would break if they relied on --detect and the environment variables would take precedence.

Additional context
Add any other context or screenshots about the feature request here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Feature Work required.
Projects
None yet
Development

No branches or pull requests

1 participant