-
New Feature
-
Resolution: Unresolved
-
Major
-
None
Is there are way of accessing the metadata through the Jenkins API? All I see is
"property" : [ { "_class" : "com.sonyericsson.hudson.plugins.metadata.model.MetadataJobProperty", "children" : [ { "_class" : "com.sonyericsson.hudson.plugins.metadata.model.values.StringMetadataValue" }, { "_class" : "com.sonyericsson.hudson.plugins.metadata.model.values.StringMetadataValue" }, { "_class" : "com.sonyericsson.hudson.plugins.metadata.model.values.TreeNodeMetadataValue" } ] },
Metadata associated with a Jenkins build can be accessed via the Java API. I use the following Groovy code.
and here is an example on how to add your own String value metadata to a build