Home > Software engineering >  Is there a way to generate build-info.json locally while doing mvn deploy?
Is there a way to generate build-info.json locally while doing mvn deploy?

Time:02-23

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:

  1. jf mvn deploy --build-name=mybuild --build-number=1
  2. jf rt bp mybuild 1 --dry-run > build-info.json
  • Related