Skip to content

Incorrect value from CasC #513

@kott-off

Description

@kott-off

Describe the bug
Datadog plugin is configured with CasC. ciInstanceName value from CasC will not be applied properly to "CI Instance Name" setting in UI, it gets value from traceServiceName .

To Reproduce
Steps to reproduce the behavior:

  1. Setup Datadog plugin in CasC
 datadogGlobalConfiguration:
    cacheBuildRuns: true
    ciInstanceName: "playground-dev.dev"
    collectBuildLogs: false
    collectBuildTraces: false
    datadogClientConfiguration:
      datadogApiConfiguration:
        apiKey:
          datadogCredentialsApiKey:
            credentialsId: "datadog_api_key"
        intake:
          datadogIntakeUrls:
            apiUrl: "https://api.datadoghq.com/api/"
            logsUrl: "https://http-intake.logs.datadoghq.com/v1/input/"
            webhooksUrl: "https://webhook-intake.datadoghq.com/api/v2/webhook/"
    emitConfigChangeEvents: false
    emitSecurityEvents: true
    emitSystemEvents: true
    enableCiVisibility: true
    hostname: "playground-dev.dev"
    refreshDogstatsdClient: false
    reportWith: "HTTP"
    showDatadogLinks: true
    targetApiURL: "https://api.datadoghq.com/api/"
    targetCredentialsApiKey: "datadog_api_key"
    targetLogIntakeURL: "https://http-intake.logs.datadoghq.com/v1/input/"
    targetWebhookIntakeURL: "https://webhook-intake.datadoghq.com/api/v2/webhook/"
    traceServiceName: "jenkins"
    useAwsInstanceHostname: false
  1. Apply config
  2. Go to global configuration
  3. See that "CI Instance Name" setting is different from CasC ciInstanceName

Image

Environment and Versions:
CasC plugin: 1953.v148f87d74b_1e
datadog plugin: 9.1.5
Jenkins LTS: 2.492.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugBug related issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions