I am using this plugin https://github.com/jfrog/build-info to publish build info to Artifactory
I want to access the build-info.json in a folder for ex: /target folder when I run mvn deploy
Is there a way to do that?
We have an internal observability tool that uses the build-info. We moved from Jenkins to AWS Codebuild. Jenkins had a plugin which provided this file, now I am trying to generate it manually
CodePudding user response:
Based on the description, I believe Artifactory Maven Plugin should be helpful where you can capture the build info and push to the Artifactory, therefore, having a build-info.json for each build you do.
CodePudding user response:
You can use JFrog CLI to get the build info data.
Run the following jf commands:
- jf mvn deploy --build-name=mybuild --build-number=1
- jf rt bp mybuild 1 --dry-run > build-info.json