You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @guybar ,
The jf rt bce command is used to collect environment variables to a build info.
The command you are looking for is jf rt bag which collects the Git revision and URL from the local .git directory and adds it to the build-info.
See the docs for more info.
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: "vcs": [ { "revision": "e2c0e017902db2715cf0d6e488e74d841860d969", "message": "Initial commit", "branch": "", "url": "[email protected]:username/test.git" } ]
@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.
For example:
Also if you are using build-add-git(jf rt bag) and haven't checkout to any branch on gitLab CI, it uses detached HEAD for the latest commit, which gives you vcs of
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: