diff --git a/src/brain/gocd/gocdDataDog/deployDatadogEvents.test.ts b/src/brain/gocd/gocdDataDog/deployDatadogEvents.test.ts index cc4e8c08..3fa48bea 100644 --- a/src/brain/gocd/gocdDataDog/deployDatadogEvents.test.ts +++ b/src/brain/gocd/gocdDataDog/deployDatadogEvents.test.ts @@ -91,7 +91,7 @@ describe('GocdDatadogEvents', () => { expect(message).toEqual({ body: { title: - 'GoCD: deploying in all', + 'GoCD: deploying in all', text: '%%% \n' + 'GoCD auto-deployment started from: [getsentry@d2501d598f97](https://github.com/getsentry/getsentry/commits/d2501d598f97829b43627ba5d5721013f1d217dc),\n' + @@ -132,7 +132,7 @@ describe('GocdDatadogEvents', () => { expect(message).toEqual({ body: { title: - 'GoCD: deploying in all', + 'GoCD: deploying in all', text: '%%% \n' + 'GoCD deployment started by <@U018H4DA8N5> from: [getsentry@d2501d598f97](https://github.com/getsentry/getsentry/commits/d2501d598f97829b43627ba5d5721013f1d217dc),\n' + @@ -243,7 +243,9 @@ describe('GocdDatadogEvents', () => { const message = datadogApiInstanceSpy.mock.calls[0][0]; expect(message).toEqual({ body: { - title: 'GoCD: deploying in all', + title: + 'GoCD: deploying ' + + in all', text: '%%% \n' + 'GoCD deployment started from: [getsentry@2b0034becc4a](https://github.com/getsentry/getsentry/commits/2b0034becc4ab26b985f4c1a08ab068f153c274c),\n' + @@ -276,7 +278,9 @@ describe('GocdDatadogEvents', () => { const message = datadogApiInstanceSpy.mock.calls[0][0]; expect(message).toEqual({ body: { - title: 'GoCD: deploying in us', + title: + 'GoCD: deploying ' + + in us', text: '%%% \n' + 'GoCD auto-deployment started from: [snuba@4d71a785da42](https://github.com/getsentry/snuba/commits/4d71a785da42db5606c2c82bb5a91adfb5006fc7),\n' + diff --git a/src/brain/gocd/gocdDataDog/deployDatadogEvents.ts b/src/brain/gocd/gocdDataDog/deployDatadogEvents.ts index 236f8bd7..b8056918 100644 --- a/src/brain/gocd/gocdDataDog/deployDatadogEvents.ts +++ b/src/brain/gocd/gocdDataDog/deployDatadogEvents.ts @@ -281,6 +281,9 @@ export class DeployDatadogEvents { // getsentry-frontend const service = pipeline.group; + // deploy-getsentry-backend-us + const pipelineName = pipeline.name; + // getsentry@h92mfyw // let repoSha = this.getRepoSha(pipeline); @@ -304,7 +307,7 @@ export class DeployDatadogEvents { const sentry_user_tags = authors.map((user) => `sentry_user:${user.login}`); // Title: GoCD: deploy sha (started/failed/completed) in -region - const title = `GoCD: deploying <${service}> <${stageName}> <${pipelineResult}> in ${region}`; + const title = `GoCD: deploying <${service}> <${pipelineName}> <${stageName}> <${pipelineResult}> in ${region}`; // Automatic deploy triggered by to track details visit: https://deploy.getsentry.net/go/pipelines/value_stream_map/deploy-getsentry-backend-s4s/2237 const text = `%%% \n${deploymentReason} from: ${commitShaLink},\n \n ${commitDiffLink} \n GoCD:${stageLink} \n\n *this message was produced by a eng-pipes gocd brain module* \n %%%`; // Tags: source:gocd customer_name:s4s sentry_region:s4s source_tool:gocd sentry_user:git commit email source_category:infra-tools