<?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: Integrating Dynatrace with Jenkins for Deployment Events (API v2 Compatibility) in Dynatrace API</title>
    <link>https://community.dynatrace.com/t5/Dynatrace-API/Integrating-Dynatrace-with-Jenkins-for-Deployment-Events-API-v2/m-p/247512#M3177</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can use &lt;A title="Events API v2 - POST an event" href="https://docs.dynatrace.com/docs/shortlink/api-events-v2-post-event" target="_blank" rel="noopener"&gt;Events API v2 - POST an event&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;</description>
    <pubDate>Thu, 06 Jun 2024 06:53:35 GMT</pubDate>
    <dc:creator>AntonPineiro</dc:creator>
    <dc:date>2024-06-06T06:53:35Z</dc:date>
    <item>
      <title>Integrating Dynatrace with Jenkins for Deployment Events (API v2 Compatibility)</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Integrating-Dynatrace-with-Jenkins-for-Deployment-Events-API-v2/m-p/247487#M3176</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi everyone,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'm working on integrating Dynatrace with Jenkins to send deployment events.&lt;/SPAN&gt;&lt;SPAN&gt; I've found two resources:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;Official documentation mentioning a plugin:&lt;/SPAN&gt; &lt;A class="" title="Push deployment events from Jenkins" href="https://docs.dynatrace.com/docs/shortlink/api-deployment-jenkins" target="_blank" rel="noopener noreferrer"&gt;Docs link&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Blog post referencing a library:&lt;/SPAN&gt; &lt;A class="" title="Simplify and standardize Dynatrace integration to Jenkins software delivery pipelines with shared libraries" href="https://www.dynatrace.com/news/blog/simplify-and-standardize-dynatrace-integration-to-jenkins-software-delivery-pipelines-with-shared-libraries/" target="_blank" rel="noopener noreferrer"&gt;Blog link&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;Both resources use the Events API v1 (POST) with JSON format.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;My question:&lt;/SPAN&gt;&lt;SPAN&gt; can I use either the plugin or library approach with the updated Events API v2 format?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any insights on this or recommendations for v2 integration would be greatly appreciated!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2024 19:21:05 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Integrating-Dynatrace-with-Jenkins-for-Deployment-Events-API-v2/m-p/247487#M3176</guid>
      <dc:creator>pmarchena</dc:creator>
      <dc:date>2024-06-05T19:21:05Z</dc:date>
    </item>
    <item>
      <title>Re: Integrating Dynatrace with Jenkins for Deployment Events (API v2 Compatibility)</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Integrating-Dynatrace-with-Jenkins-for-Deployment-Events-API-v2/m-p/247512#M3177</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can use &lt;A title="Events API v2 - POST an event" href="https://docs.dynatrace.com/docs/shortlink/api-events-v2-post-event" target="_blank" rel="noopener"&gt;Events API v2 - POST an event&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2024 06:53:35 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Integrating-Dynatrace-with-Jenkins-for-Deployment-Events-API-v2/m-p/247512#M3177</guid>
      <dc:creator>AntonPineiro</dc:creator>
      <dc:date>2024-06-06T06:53:35Z</dc:date>
    </item>
    <item>
      <title>Re: Integrating Dynatrace with Jenkins for Deployment Events (API v2 Compatibility)</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Integrating-Dynatrace-with-Jenkins-for-Deployment-Events-API-v2/m-p/247539#M3178</link>
      <description>&lt;P&gt;You could just send the events through curl&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;stage('Send Event') {
            steps {
                script {
                    def response = sh(
                        script: """
                            curl -X POST \
                            -H "Content-Type: application/json" \
                            -H "Authorization: Api-Token ${AUTH_TOKEN}" \
                            -d '${PAYLOAD}' \
                            ${DT_URL}
                        """,
                        returnStdout: true
                    ).trim()
                    echo "Response: ${response}"
                }
            }
        }&lt;/LI-CODE&gt;&lt;P&gt;I wrote a PR for the Jenkins integration requesting the update to events v2, maybe you can reuse parts of it.&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/dynatrace-ace/dynatrace-jenkins-library/pull/15" target="_blank"&gt;https://github.com/dynatrace-ace/dynatrace-jenkins-library/pull/15&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2024 10:43:56 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Integrating-Dynatrace-with-Jenkins-for-Deployment-Events-API-v2/m-p/247539#M3178</guid>
      <dc:creator>mark_bley</dc:creator>
      <dc:date>2024-06-06T10:43:56Z</dc:date>
    </item>
    <item>
      <title>Re: Integrating Dynatrace with Jenkins for Deployment Events (API v2 Compatibility)</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Integrating-Dynatrace-with-Jenkins-for-Deployment-Events-API-v2/m-p/247565#M3179</link>
      <description>&lt;P&gt;Hello, thanks for sharing the documentation.&lt;/P&gt;&lt;P&gt;I'm looking for some specific guide.&lt;/P&gt;&lt;P&gt;Greetings&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2024 14:06:19 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Integrating-Dynatrace-with-Jenkins-for-Deployment-Events-API-v2/m-p/247565#M3179</guid>
      <dc:creator>pmarchena</dc:creator>
      <dc:date>2024-06-06T14:06:19Z</dc:date>
    </item>
    <item>
      <title>Re: Integrating Dynatrace with Jenkins for Deployment Events (API v2 Compatibility)</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Integrating-Dynatrace-with-Jenkins-for-Deployment-Events-API-v2/m-p/247569#M3180</link>
      <description>&lt;P&gt;Hello thank you very much.&lt;/P&gt;&lt;P&gt;Thats what Im looking for.&lt;BR /&gt;I'll try to reuse your code and come back to tell you how it turned out.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Greetings&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2024 14:10:14 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Integrating-Dynatrace-with-Jenkins-for-Deployment-Events-API-v2/m-p/247569#M3180</guid>
      <dc:creator>pmarchena</dc:creator>
      <dc:date>2024-06-06T14:10:14Z</dc:date>
    </item>
  </channel>
</rss>

