Skip to content
This repository was archived by the owner on Jan 23, 2020. It is now read-only.
This repository was archived by the owner on Jan 23, 2020. It is now read-only.

Allow multiple values for tags #157

Description

@mklauber

We have one jenkins job that deploys multiple applications for us. We're trying to tag the event with each app:{name} value, but currently, only the last value shows up.

Currently, this line https://github.com/DataDog/jenkins-datadog-plugin/blob/master/src/main/java/org/datadog/jenkins/plugins/datadog/DatadogUtilities.java#L280 does not allow multiple values for a given key. Whenever a tag with the same key shows up, it overwrites the previous value. Ideally, I think we'd want to modify the above line to make a data structure of the type:

{
   'key': ['value'],
   'key2:['value1','value2']
}

And change https://github.com/DataDog/jenkins-datadog-plugin/blob/master/src/main/java/org/datadog/jenkins/plugins/datadog/DatadogUtilities.java#L535
to iterate through the value list and add the created string to the tags array.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions