build-info
build-info copied to clipboard
org.jfrog.build.extractor.builder.ArtifactBuilder does not return localPath info from build method
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
Here a fix recommendation: https://github.com/jfrog/build-info/pull/604