I would like to know how to add an entry to a configuration's audit log via groovy. I have created a configuration (i.e. configuration X) that will remove the published artifacts associated with a specific build (i.e. target build). I would like to have a step in configuration X that will add an entry to the audit log of the configuration associated with the target build stating that the published artifacts of the target build were removed by configuration X. I can get the target configuration in groovy with "system.getConfiguration(selectedConfiguration)". But once I get the configuration I don't know how to add an entry to the audit log.
Please use below script:
groovy: import com.pmease.quickbuild.entitymanager.*; def targetConf = ConfigurationManager.instance.get("root/test"); AuditManager.instance.audit(targetConf, "Removed artifacts via configuration " + configuration.pathName);