-
Notifications
You must be signed in to change notification settings - Fork 245
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
Branch name is missing when collecting git info from GitLab #2827
Comments
you are correct, I was referring to the jf rt bag command, and you are correct it does not pick up the branch name, as you included in the example you had shared: |
@guybar Arey you performing this on GitLab CI pipeline ? If you are working on a GitLab CI pipeline and trying to collect environment variables from there, you will see them in the properties. However, this will not include Git details in the vcs section.
Also if you are using
This is what are you requesting for ? |
Hi @guybar, Thank you for bringing this up! As most CI pipelines run in a detached HEAD state, the branch name is not fetched by default. If we need to explicitly collect the branch name, we would first need to check out to the branch and then capture it. Each CI/CD platform provides its own environment variable to retrieve the current branch:
Since this requires implementing support for multiple CI/CD systems, this is being categorized as a feature request. We will take it up separately based on availability and priority. Thanks again for your input! Let me know if you have any additional thoughts. |
When collecting git info from GitLab using the CLI command
jf bag
the GitLab branch name is not collected.Expected:
Collect the branch name from the GitLab
CI_COMMIT_BRANCH
environment variable, and save it as the branch name in the build infoThe text was updated successfully, but these errors were encountered: