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

Actually fix build id issue #14601

Merged
merged 1 commit into from Sep 2, 2023
Merged

Actually fix build id issue #14601

merged 1 commit into from Sep 2, 2023

Conversation

hcorion
Copy link
Member

@hcorion hcorion commented Sep 2, 2023

Seems like Azure changed how it's SYSTEM_PULLREQUEST_SOURCEBRANCH works, and now is undefined if it's not a PR build.

@@ -91,7 +91,7 @@ for /F %%I IN ('call %GIT% rev-list HEAD --count') do set COMMIT_COUNT=%%I

rem // Check if the current build system sets the git branch and version.
rem // The name is misleading. This is also used for master builds.
if defined SYSTEM_PULLREQUEST_SOURCEBRANCH (
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove the line with the comment above

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also remove the same comment in the else branch and adjust the echo with BUILD_SOURCEBRANCHNAME

@@ -125,6 +125,7 @@ if defined SYSTEM_PULLREQUEST_SOURCEBRANCH (
for /F %%I IN ('call %GIT% rev-parse --short^=8 HEAD') do set GIT_VERSION=%COMMIT_COUNT%-%%I
for /F %%I IN ('call %GIT% rev-parse --abbrev-ref HEAD') do set GIT_BRANCH=%%I

set GIT_BRANCH=%BUILD_SOURCEBRANCHNAME%
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see why we need this

@Megamouse Megamouse added the Build and CI Anything related to the build process and continuous integration label Sep 2, 2023
@Megamouse Megamouse merged commit d4b1d5c into RPCS3:master Sep 2, 2023
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Build and CI Anything related to the build process and continuous integration
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants