Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
raandree committed Apr 15, 2020
1 parent f385bd8 commit 4484b7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion BuildHelpers/Public/Get-BuildVariable.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ function Get-BuildVariable {
$BuildNumber = switch ($Environment.Name)
{
'APPVEYOR_BUILD_NUMBER' { (Get-Item -Path "ENV:$_").Value; break } # AppVeyor
'CI_JOB_ID' { (Get-Item -Path "ENV:$_").Value; break } # GitLab CI 9.0+ - not perfect https://gitlab.com/gitlab-org/gitlab-ce/issues/3691
'CI_PIPELINE_ID' { (Get-Item -Path "ENV:$_").Value; break } # GitLab CI 9.0+ - not perfect https://gitlab.com/gitlab-org/gitlab-ce/issues/3691
'CI_BUILD_ID' { (Get-Item -Path "ENV:$_").Value; break } # GitLab CI 8.x - not perfect https://gitlab.com/gitlab-org/gitlab-ce/issues/3691
'BUILD_NUMBER' { (Get-Item -Path "ENV:$_").Value; break } # Jenkins, Teamcity ... seems generic.
'BUILD_BUILDNUMBER' { (Get-Item -Path "ENV:$_").Value; break } # Azure Pipelines
Expand Down

0 comments on commit 4484b7b

Please sign in to comment.