mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-25 12:12:50 +01:00
Actually fix build id issue
This commit is contained in:
parent
7e281a3354
commit
d4b1d5c938
@ -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 // Check if the current build system sets the git branch and version.
|
||||||
rem // The name is misleading. This is also used for master builds.
|
rem // The name is misleading. This is also used for master builds.
|
||||||
if defined SYSTEM_PULLREQUEST_SOURCEBRANCH (
|
if defined BUILD_SOURCEBRANCHNAME (
|
||||||
|
|
||||||
rem // This must be a CI build
|
rem // This must be a CI build
|
||||||
|
|
||||||
@ -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 --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
|
for /F %%I IN ('call %GIT% rev-parse --abbrev-ref HEAD') do set GIT_BRANCH=%%I
|
||||||
|
|
||||||
|
set GIT_BRANCH=%BUILD_SOURCEBRANCHNAME%
|
||||||
) else (
|
) else (
|
||||||
rem // This must be a pull request or a build from a fork.
|
rem // This must be a pull request or a build from a fork.
|
||||||
echo Assuming pull request build
|
echo Assuming pull request build
|
||||||
|
@ -9,12 +9,6 @@ pr:
|
|||||||
branches:
|
branches:
|
||||||
include:
|
include:
|
||||||
- master
|
- master
|
||||||
variables:
|
|
||||||
BUILD_REPOSITORY_NAME: $(Build.Repository.Name)
|
|
||||||
SYSTEM_PULLREQUEST_SOURCEBRANCH: $(System.PullRequest.SourceBranch)
|
|
||||||
SYSTEM_PULLREQUEST_PULLREQUESTID: $(System.PullRequest.PullRequestId)
|
|
||||||
BUILD_SOURCEVERSION: $(Build.SourceVersion)
|
|
||||||
BUILD_SOURCEBRANCHNAME: $(Build.SourceBranchName)
|
|
||||||
jobs:
|
jobs:
|
||||||
- job: Linux_Build
|
- job: Linux_Build
|
||||||
strategy:
|
strategy:
|
||||||
|
Loading…
Reference in New Issue
Block a user