Skip to content

Commit

Permalink
Add example for Microsoft Teams notification using Adaptive Cards 📩 (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
rdrgporto authored Oct 29, 2024
1 parent 813bbce commit c4be95d
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,32 @@ pipeline {
}
```

### Pipeline post section with Adaptive Cards

```groovy
pipeline {
agent any
stages {
stage('Init') {
steps {
echo 'Hello!'
}
}
}
post {
failure {
office365ConnectorSend webhookUrl: "https://prod.westeurope.logic.azure.com:443/workflows...",
message: 'Something went wrong',
status: 'Failure',
adaptiveCards: true
}
}
}
````

### Global Configuration in Init Hook

Jenkins has the capability to execute Groovy scripts on launch by placing them in `$JENKINS_HOME/init.groovy.d`.
Expand Down

0 comments on commit c4be95d

Please sign in to comment.