As part of afterSave event
I want to generate a pom file with all the artifacts in a buildInfo
I am able to generate the pom file, but now I want the buildInfo to also
include this generated and deployed pom file

<code>
        Module manifestmodule = new Module();
        manifestmodule.setId(gav.groupId + ":" + gav.artifactId + ":" +
gav.version);
        List<Artifact> artifacts = manifestmodule.getArtifacts();
        if (artifacts == null){
                artifacts = new ArrayList<Artifact>();
                manifestmodule.artifacts = artifacts
        }
        Artifact manifest = new
Artifact(repositories.getFileInfo(manifestRepoPath),"pom")
        artifacts.add(manifest)
 
        List<Module> modules = detailedBuild.getModules();
        modules.add(manifestmodule)
        builds.saveBuild(detailedBuild)
</code>

But this does not add the new module manifestmodule created, any help is
appreciated



--
View this message in context: 
http://forums.jfrog.org/adding-an-artifact-to-buildinfo-inside-user-plugin-tp7578686.html
Sent from the Artifactory - Users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
Artifactory-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/artifactory-users

Reply via email to