1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2024-12-12 10:55:20 +02:00

feat(Splunk): Use repository and organization from pipelineEnv variable git/* (#4619)

This commit is contained in:
Vyacheslav Starostin 2023-10-10 15:44:24 +06:00 committed by GitHub
parent 7ab2386337
commit a50fad3b1a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -123,8 +123,8 @@ func (s *Splunk) prepareTelemetry(telemetryData telemetry.Data) MonitoringData {
CorrelationID: s.correlationID,
CommitHash: readCommonPipelineEnvironment("git/headCommitId"),
Branch: readCommonPipelineEnvironment("git/branch"),
GitOwner: readCommonPipelineEnvironment("github/owner"),
GitRepository: readCommonPipelineEnvironment("github/repository"),
GitOwner: readCommonPipelineEnvironment("git/organization"),
GitRepository: readCommonPipelineEnvironment("git/repository"),
}
monitoringJson, err := json.Marshal(monitoringData)
if err != nil {