Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

GIT_BRANCH override supported on azure pipelines with gitversion 5.x #4663

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

Open
Ninho67 wants to merge 1 commit into GitTools:support/5.x
base: support/5.x
Choose a base branch
Loading
from Ninho67:feature/azure_pipeline_git_branch

Conversation

@Ninho67
Copy link

@Ninho67 Ninho67 commented Aug 25, 2025

Description

Added support for GIT_BRANCH environment variable in Azure pipeline builds with gitversion 5.x

Related Issue

#4662

Motivation and Context

Solves multi-repo build situations on azure pipelines without being forced to upgrade to gitversion 6.x,
Upgrading to gitversion 6.x breaks the versionning locally on Visual Studio (Windows).

How Has This Been Tested?

Tested on azure by adding the env variable GIT_BRANCH as follows:

- task: DotNetCoreCLI@2
 displayName: 'Build project 1'
 env:
 GIT_BRANCH: '${{parameters.SpotBranch}}'
 ...

Screenshots (if appropriate):

Checklist:

  • [ x] My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • [x ] I have added tests to cover my changes.
  • [x ] All new and existing tests passed.

phatcher reacted with thumbs up emoji
@Ninho67 Ninho67 changed the base branch from main to support/5.x August 25, 2025 09:00
@Ninho67 Ninho67 changed the title (削除) GIT_BRANCH override supported on azure pipelines (削除ここまで) (追記) GIT_BRANCH override supported on azure pipelines with gitversion 5.x (追記ここまで) Aug 25, 2025
Copy link

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

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

AltStyle によって変換されたページ (->オリジナル) /