<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to post the deployment job status from Jenkins via Event API? in Automations</title>
    <link>https://community.dynatrace.com/t5/Automations/How-to-post-the-deployment-job-status-from-Jenkins-via-Event-API/m-p/111718#M778</link>
    <description>&lt;P&gt;Yes, there is no status field in payload. There should be a status field. But I am not sure what the syntax is. &lt;/P&gt;&lt;BR /&gt;</description>
    <pubDate>Tue, 15 Jan 2019 08:22:19 GMT</pubDate>
    <dc:creator>rswarnka</dc:creator>
    <dc:date>2019-01-15T08:22:19Z</dc:date>
    <item>
      <title>How to post the deployment job status from Jenkins via Event API?</title>
      <link>https://community.dynatrace.com/t5/Automations/How-to-post-the-deployment-job-status-from-Jenkins-via-Event-API/m-p/111716#M776</link>
      <description>&lt;P&gt;We are posting the jenkins deployment job JSON to SaaS. We tried to make the build fail. But It seems the event reported is not showing the build failure. How can we post the status of build failure?&lt;/P&gt;
&lt;P&gt;Below is JSON being posted:&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://community.dynatrace.com/legacyfs/online/19441-json.png" border="0" /&gt;&lt;/P&gt;
&lt;P&gt;I am not jenkins expert, can you please help?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Dec 2021 09:32:53 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Automations/How-to-post-the-deployment-job-status-from-Jenkins-via-Event-API/m-p/111716#M776</guid>
      <dc:creator>rswarnka</dc:creator>
      <dc:date>2021-12-10T09:32:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to post the deployment job status from Jenkins via Event API?</title>
      <link>https://community.dynatrace.com/t5/Automations/How-to-post-the-deployment-job-status-from-Jenkins-via-Event-API/m-p/111717#M777</link>
      <description>&lt;P&gt;This payload doesn't contain any variable that shows build status. I'm not familiar with jenkins but first thing first. Does exist any variable in jenkins that has this information? &lt;/P&gt;&lt;P&gt;Sebastian&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 15 Jan 2019 08:19:08 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Automations/How-to-post-the-deployment-job-status-from-Jenkins-via-Event-API/m-p/111717#M777</guid>
      <dc:creator>skrystosik</dc:creator>
      <dc:date>2019-01-15T08:19:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to post the deployment job status from Jenkins via Event API?</title>
      <link>https://community.dynatrace.com/t5/Automations/How-to-post-the-deployment-job-status-from-Jenkins-via-Event-API/m-p/111718#M778</link>
      <description>&lt;P&gt;Yes, there is no status field in payload. There should be a status field. But I am not sure what the syntax is. &lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 15 Jan 2019 08:22:19 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Automations/How-to-post-the-deployment-job-status-from-Jenkins-via-Event-API/m-p/111718#M778</guid>
      <dc:creator>rswarnka</dc:creator>
      <dc:date>2019-01-15T08:22:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to post the deployment job status from Jenkins via Event API?</title>
      <link>https://community.dynatrace.com/t5/Automations/How-to-post-the-deployment-job-status-from-Jenkins-via-Event-API/m-p/111719#M779</link>
      <description>&lt;P&gt;Did you try to specify the tag as 'Contextless' in an array. See my example here.&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.dynatrace.com/legacyfs/online/19453-ev.png" /&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 15 Jan 2019 08:26:04 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Automations/How-to-post-the-deployment-job-status-from-Jenkins-via-Event-API/m-p/111719#M779</guid>
      <dc:creator>wolfgang_beer</dc:creator>
      <dc:date>2019-01-15T08:26:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to post the deployment job status from Jenkins via Event API?</title>
      <link>https://community.dynatrace.com/t5/Automations/How-to-post-the-deployment-job-status-from-Jenkins-via-Event-API/m-p/111720#M780</link>
      <description>&lt;P&gt;Here you have full syntax for EVENTS API:&lt;/P&gt;&lt;P&gt;https://www.dynatrace.com/support/help/shortlink/api-events#post-events&lt;/P&gt;&lt;P&gt;You have description and customProperties fields, maybe in one of them you will be able to add this information. Those $(BUILD_ID) are env variables from jenkins. So you will have to find out the one that is responsible for build status and put it as value to one of fields I proposed to you.&lt;/P&gt;&lt;P&gt;Sebastian &lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 15 Jan 2019 08:26:25 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Automations/How-to-post-the-deployment-job-status-from-Jenkins-via-Event-API/m-p/111720#M780</guid>
      <dc:creator>skrystosik</dc:creator>
      <dc:date>2019-01-15T08:26:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to post the deployment job status from Jenkins via Event API?</title>
      <link>https://community.dynatrace.com/t5/Automations/How-to-post-the-deployment-job-status-from-Jenkins-via-Event-API/m-p/111721#M781</link>
      <description>&lt;P&gt;Sorry my bad:&lt;/P&gt;&lt;P&gt;https://www.dynatrace.com/support/help/shortlink/api-events#parameters-mapping-&lt;/P&gt;&lt;P&gt;Here is list of allowed fields in custom deployment. Maybe adding in deployment name status into brackets is solution for it... You have to play with this I think. &lt;/P&gt;&lt;P&gt;The variable from jenkins you need is $(BUILD_STATUS). &lt;/P&gt;&lt;P&gt;so maybe &lt;/P&gt;&lt;PRE&gt;"deploymentName":"$(JOB_NAME) ($(BUILD_STATUS))"&lt;/PRE&gt;&lt;P&gt;Sebastian&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 15 Jan 2019 08:32:04 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Automations/How-to-post-the-deployment-job-status-from-Jenkins-via-Event-API/m-p/111721#M781</guid>
      <dc:creator>skrystosik</dc:creator>
      <dc:date>2019-01-15T08:32:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to post the deployment job status from Jenkins via Event API?</title>
      <link>https://community.dynatrace.com/t5/Automations/How-to-post-the-deployment-job-status-from-Jenkins-via-Event-API/m-p/111722#M782</link>
      <description>&lt;P&gt;Thanks, Sebastian. I will check this. &lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 15 Jan 2019 08:54:10 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Automations/How-to-post-the-deployment-job-status-from-Jenkins-via-Event-API/m-p/111722#M782</guid>
      <dc:creator>rswarnka</dc:creator>
      <dc:date>2019-01-15T08:54:10Z</dc:date>
    </item>
  </channel>
</rss>

