Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-54218

Job DSL API in groovy for Office 365 Connector

    Details

    • Similar Issues:

      Description

      I generally maintain all my Jenkins jobs in the form of groovy code rendered via the Job DSL plugin. 

      However, after adding the Office 365 Connector plugin for the MS Teams notifications, there seems to be no functionality in the Job DSL API to translate this component to code.

      Reference below :-

      The following tags couldn't be translated to DSL:

      • jenkins.plugins.office365connector.WebhookJobProperty

      I couldn't find a reference to this in the API here either - https://jenkinsci.github.io/job-dsl-plugin/#

      This needs an urgent fix since notifications about the build I'm using are sent using MS Teams.

       

      Thank you!

        Attachments

          Activity

          Hide
          meolivero Maria Olivero added a comment -

          Any updates on this, its been 8 months....

          Show
          meolivero Maria Olivero added a comment - Any updates on this, its been 8 months....
          Hide
          anisig Gene Anisi added a comment -

          Are there any documentation or plans to add DSL support for Office 365 Connector plugin?

          Thank you

          Show
          anisig Gene Anisi added a comment - Are there any documentation or plans to add DSL support for Office 365 Connector plugin? Thank you
          Hide
          akeeb Akeeb Y added a comment -

          Hi ,

           

          I am facing same issue when using DSL for 
          office365ConnectorWebhooks.
           

          Show
          akeeb Akeeb Y added a comment - Hi ,   I am facing same issue when using DSL for  office365ConnectorWebhooks.  
          Hide
          daspilker Daniel Spilker added a comment -

          The Office 365 connector is supported by Dynamic DSL:

          job('example') {
              properties {
                  office365ConnectorWebhooks {
                      webhooks {
                          webhook {
                              url('https://www.acme.org')
                              factDefinitions {
                                  factDefinition {
                                      name('a')
                                      template('b')
                                  }
                              }
                              macros {
                                  macro {
                                      template('c')
                                      value('d')
                                  }
                              }
                              name('test')
                              notifyAborted(true)
                              notifyBackToNormal(true)
                              notifyFailure(false)
                              notifyNotBuilt(false)
                              notifyRepeatedFailure(true)
                              notifySuccess(false)
                              notifyUnstable(true)
                              startNotification(false)
                              timeout(15000)
                          }
                      }
                  }
              }
          }
          
          Show
          daspilker Daniel Spilker added a comment - The Office 365 connector is supported by Dynamic DSL : job( 'example' ) { properties { office365ConnectorWebhooks { webhooks { webhook { url( 'https: //www.acme.org' ) factDefinitions { factDefinition { name( 'a' ) template( 'b' ) } } macros { macro { template( 'c' ) value( 'd' ) } } name( 'test' ) notifyAborted( true ) notifyBackToNormal( true ) notifyFailure( false ) notifyNotBuilt( false ) notifyRepeatedFailure( true ) notifySuccess( false ) notifyUnstable( true ) startNotification( false ) timeout(15000) } } } } }

            People

            • Assignee:
              daspilker Daniel Spilker
              Reporter:
              sameerdharur Sameer Dharur
            • Votes:
              3 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: