build-info icon indicating copy to clipboard operation
build-info copied to clipboard

org.jfrog.build.extractor.builder.ArtifactBuilder does not return localPath info from build method

Open jimjaeger opened this issue 3 years ago • 1 comments

Describe the bug The ArtifactBuilder has a method to set the localPath info but creates an artifact with null localPath info because the information is not used in build method.

https://github.com/jfrog/build-info/blob/master/build-info-extractor/src/main/java/org/jfrog/build/extractor/builder/ArtifactBuilder.java#L33

To Reproduce assertTrue new ArtifactBuilder("test).setLocalPath("sample").build().getLocalPath != null

Expected behavior provided information is used in build method and provided in created artifact object

Versions

  • Extractor version: latest version
  • Operating system: not related
  • Artifactory Version: not related

jimjaeger avatar Jan 13 '22 19:01 jimjaeger

Here a fix recommendation: https://github.com/jfrog/build-info/pull/604

jimjaeger avatar Jan 13 '22 20:01 jimjaeger