AppVeyor
Last updated
Last updated
is a CI/CD service for Windows, Linux, and macOS. AppVeyor supports most source control platforms. You can link AppVeyor to Rocket.Chat through webhooks and get notified in a Rocket.Chat channel each time a build runs.
for an Appveyor account and link it to your source control platform. The demonstration here is done using as the source control platform.
To create an AppVeyor project:
Create a new GitHub repository or clone .
Sign in to AppVeyor.
Go to the page.
Click +NEW PROJECT.
Select GitHub on the left pane.
Select either public repositories only or both public and private repositories.
Click Authorize GitHub.
Sign in to GitHub in the newly opened tab.
Select the above-created webhook project in the list of projects shown as the repository to use.
Paste the following script into the Script field for the incoming webhook created.
To configure your build:
Create a file in the root directory of your configured GitHub project called appveyor.yml
and paste the following content.
Commit and push the code to your GitHub repository.
The build process starts immediately after the push is successful.
A notification is sent in the channel you configured to be used for your incoming webhook.
The current build can be verified by navigating to Projects > Your-Project > Current build on AppVeyor.
Follow the necessary steps to create a Rocket.Chat incoming webhook. See. Take note of the generated webhook URL.
Each time you push to your configured GitHub repository, AppVeyor posts a payload to our webhook. The structure of the payload is similar to that of found in the example repository. You retrieve the content
object and use the details to create a message object which becomes the text portion of the Rocket.Chat message returned in the method. process_incoming_request
.
The install
block in the configuration tells the build to install the latest version of NodeJS and the deploy block tells AppVeyor to make use of webhooks. Replace the url
variable with the webhook URL generated during the creation of your incoming webhook. Check to understand better.