office-365-connector-plugin | Office 365 Connector plugin sends jobs status notifications
kandi X-RAY | office-365-connector-plugin Summary
kandi X-RAY | office-365-connector-plugin Summary
Office 365 Connector plugin sends jobs status notifications to Microsoft Teams or Outlook
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Runs the webhook
- Returns an HttpClient object that is used to build the HTTP client
- Returns true if the host is no proxy host
- Prints the logging
- This method is called when a build is completed
- Calculates the status of the build
- Creates the possible action for a pull request
- Creates a card for this build
- Synchronously sends a build step notification
- Send build step notification
- Create a card for build message
- Creates a new started card
- The build is started event
- Called when a build started notification is triggered
- Validates an URL or variable reference
- Checks if the given string is a valid URL
- Returns a new WebhookJobProperty instance
- Build prebuild started event
- Sets the fact definitions
- Set macro list
- Set the name
- Check if is enabled
- Set the value template
- Set the color
- Setter for the message
- Set the status
office-365-connector-plugin Key Features
office-365-connector-plugin Examples and Code Snippets
Community Discussions
Trending Discussions on office-365-connector-plugin
QUESTION
I currently have several Jenkins jobs that will send a notification to a channel on Microsoft Teams at the conclusion of the test. The intended goal was to send these notification during deployments. The job is configured as illustrated on the image below
Ideally, I would like to include a condition that will send this notification if the targeted environment is a production environment and not a test environment. This way, I won't be spamming that Teams channel with notifications while troubleshooting issues.
I tried setting up a macro as illustrated below
When the environment parameter value didn't match, the job concluded and nothing was logged in the console (notification was not sent). When the value did match, the following message showed up in the console [Office365connector] Matched template '${ENV, var="environment"}' for webhook with name ...
where the name matched the environment from the Maven command I used for the test run. However, the notification was not sent to the Microsoft Teams channel. Obviously, this is wrong. I am assuming the reason for this is that ENV
is not defined.
In summary, I need help setting up this macro. The reference I used for how to set up the macro is found here.
...ANSWER
Answered 2021-Feb-02 at 20:15My original macro setup works. The reason why it was not sending the notification was because the check box for "Notify Repeated Failure" was not checked and the previous jobs had failed before.
Once I checked that option, it only sends the notification when the targeted environment matches the value (i.e. "prod").
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install office-365-connector-plugin
You can use office-365-connector-plugin like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the office-365-connector-plugin component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page