Hi,
I'm having trouble in associating Jenkins buildinfo to docker image uploaded to jFrog Artifactory.
Below is the pipeline stage for buildinfo association..
rtMaven = Artifactory.newMavenBuild()
buildInfo = Artifactory.newBuildInfo()
rtMaven.tool = 'maven-363'
buildInfo = rtMaven.run pom: 'pom.xml', goals: 'clean compile jib:build', buildInfo: buildInfo
artifactoryServer.publishBuildInfo buildInfo
Image getting pushed to Artifactory repository but job buidinfo fails with below message in log
[main] INFO org.jfrog.build.extractor.maven.BuildDeploymentHelper - Artifactory Build Info Recorder: deploy artifacts set to false, artifacts will not be deployed...
[main] INFO org.jfrog.build.extractor.maven.BuildDeploymentHelper - Artifactory Build Info Recorder: publish build info set to false, build info will not be published...
I have tried to set properties as below but still the buildinfo push fails.
rtMaven.deployer.buildArtifacts = true
rtMaven.deployer.deployArtifacts = true
Please help in understand what I'm missing here.
Regards,
Hari