Skip to content

BuildHelpers grabs the wrong variable GitLab CI  #122

Description

@raandree

When building on GitLab CI BuildHelpers uses the wrong variable to get the build number. The variable 'CI_JOB_ID' is not the build number but is different between each job (worker) in the same build. This should be replaced by 'CI_PIPELINE_ID'.

BHBranchName DscTaggingTest 
BHBuildNumber 3327 
BHBuildOutput G:\GIT\GitLab_Live\ServerDsc6\Repo\sTjDq1w6\0\DesiredStateConfig...
BHBuildSystem GitLab CI 
BHProjectName ServerManagement 
BHProjectPath G:\GIT\GitLab_Live\ServerDsc6\Repo\sTjDq1w6\0\DesiredStateConfig...
CI true 
CI_BUILD_ID 3327 
CI_BUILD_NAME build_batch1 
CI_COMMIT_BRANCH DscTaggingTest 
CI_COMMIT_REF_NAME DscTaggingTest 
CI_CONCURRENT_ID 0 
CI_CONCURRENT_PROJECT_ID 0 
CI_DEFAULT_BRANCH master 
CI_JOB_ID 3327 
CI_JOB_NAME build_batch1 
CI_JOB_STAGE build 
CI_JOB_TOKEN [MASKED] 
CI_PIPELINE_ID 1575 
CI_PIPELINE_IID 1122 
CI_PIPELINE_SOURCE push 

And please close #43.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions