Skip to content
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

vcsUrl is ignored when uploading buildInfo #40

Open
NewLunarFire opened this issue Aug 23, 2022 · 0 comments
Open

vcsUrl is ignored when uploading buildInfo #40

NewLunarFire opened this issue Aug 23, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@NewLunarFire
Copy link

Describe the bug
Even if the vcsUrl property is specified in the pom.xml, the plugin uses the one from the local git repository. This is an issue with our build server (Bamboo) because of the way it handles git repository caching. When caching is enabled, the git repository origin remote will point to a file:// url which contains the path to the repository cache instead of the actual remote url.

To Reproduce
Clone a repository with a maven project that uses the Artifactory maven plugin. Put the following in the plugin configuration:

<buildInfo>
  <vcsUrl>ssh://test@example.com/path/to/repo.git</vcsUrl>
</buildInfo>

Run the build (mvn deploy) and look at the VCS tab on the build result page. The url will show the git remote url instead of whatever was specified in the vcsUrl tag.

Expected behavior
The vcsUrl configuration in the pom.xml should have priority over the remote url in the .git folder

Screenshots
firefox_8p7IvVOPsA

Versions

  • Artifactory Maven plugin version: 3.4.0
  • Artifactory version: 7.35.2
  • Maven version: 3.6.3

Additional context
Add any other context about the problem here.

@NewLunarFire NewLunarFire added the bug Something isn't working label Aug 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant