Skip to content

buildInfo vcs appears as an empty list even if the pom.xml has settings to populate revision, url #109

@RIHELO

Description

@RIHELO

Describe the bug

I found that our artifacts do not contain vcs data in the buildInfo.
I checked artifacts buildInfo using GET to artifactory endpoint and all the time the vcs appears as an empty list.

pom.xml contains environment variables that should populate the vcs.
The variables are verified with echo and are correct.

Current behavior

Pom.xml looks like this

                                   <buildInfo>
                                        <vcsUrl>${env.VCS_URL}</vcsUrl>
                                        <vcsBranch>${env.VCS_BRANCH}</vcsBranch>
                                        <vcsRevision>${env.VCS_REVISION}</vcsRevision>
                                    </buildInfo>

But the buildInfo vcs is not populated:
"vcs": [],

Reproduction steps

Set the environment variables that will populate the buildInfo, in this case:

     export VCS_URL=https://mybitbucket.net/scm/tool/example.git
     export VCS_BRANCH=main
     export VCS_REVISION=somecommit

Build with maven and publish artifacts to Artifactory

Expected behavior

Expected behavior
BuildInfo published to the Artifactory contains VCS information.

Versions

maven: 3.9.3
maven-release-plugin: 3.1.1
artifactory-maven-plugin: 3.6.2
Operating system: Linux
Artifactory Version: JFrog Platform Enterprise Plus 7.90.6

Artifactory Maven plugin version

3.6.2

Operating system type and version

Linux, version 4.18.0-553.76.1.el8_10.x86_64

JFrog Artifactory version

Artifactory JFrog Platform Enterprise Plus 7.90.6

Maven version

3.9.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions