Skip to content

Commit

Permalink
Fix issue#206 (#314)
Browse files Browse the repository at this point in the history
Unable to configure office365connector plugin using DSL configure for flow-definition #206

Co-authored-by: Siva Vasipalli (Contractor) <[email protected]>
  • Loading branch information
SivaVasipalli and vsnreddy113 authored Oct 11, 2023
1 parent 72a6b75 commit 7c25a8a
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,34 @@ job('Example Job Name') {
}
}
```
### DSL Pipeline Job

```groovy
pipeline('Example Job Name'){
// configure office365connector plugin using DSL configure for flow-definition
configure { project ->
                   project / 'properties' << 'jenkins.plugins.office365connector.WebhookJobProperty' {
                   webhooks {
                       'jenkins.plugins.office365connector.Webhook' {
                           name("Office 365 Team channel notifications")
                           url("${Your webhook URL that needs to configure ( teams channel / outlook )}")
                           startNotification(false)
                           notifySuccess(false)
                           notifyAborted(false)
                           notifyNotBuilt(false)
                           notifyUnstable(false)
                           notifyFailure(true)
                           notifyBackToNormal(false)
                           notifyRepeatedFailure(false)
                           timeout(30000)
                       }
                   }
               }
          }
}
```



### Pipeline properties

Expand Down

0 comments on commit 7c25a8a

Please sign in to comment.