Giter Site home page Giter Site logo

teamcity-aws-sns-trigger-plugin's Introduction

TeamCity Amazon SNS Trigger

official JetBrains project plugin status

The plugin enables a new type of build trigger. Currently, it supports only the HTTP(S) subscription type.

This plugin allows triggers from multiple SNS topics and supports basic build customization for them.

Compatibility

Compatible with TeamCity 2022.04 and greater.

Installation

  1. Download the Amazon SNS Trigger plugin.
  2. Install it as an additional TeamCity plugin.

After that, a new trigger type is automatically added for your build configuration in TeamCity.

Configuration

To configure Amazon SNS Trigger in TeamCity, do the following:

  1. Go to the build configuration.
  2. Add Amazon SNS Trigger.
  3. Copy the generated HTTP(S) link.
  4. Add a new subscription for your SNS topic in the AWS console (see the subscription link in a trigger configuration).
  5. Save the trigger configuration before sending a subscription event.

You can configure more than one trigger of this type.

Build Customization

The trigger introduces new build parameters:

%sns.message.subject% - extracts the Subject value from an SNS message.

%sns.message.body% - message body from the SNS message.

%sns.message.attributes.<name>% - message attributes. Replace <name> with the actual attribute name.

Feel free to use them at your will.

The values are extracted as-is from the SNS message, so all values are passed as strings (null values are passed as empty strings).

TeamCity doesn't support attributes with the dot (.) symbol in the name.

sns.message.attributes.<name> is a dynamically named attribute and can't be used in static context, like build configuration. If you want to use values from attributes in a build configuration, create a custom property and initialize it via ' Trigger Configuration' -> 'Build Customization' -> 'Build Parameters'

Build

This project uses Gradle as the build system. You can easily open it in IntelliJ IDEA or Eclipse. To test and build the plugin, execute the build gradle command.

Contributions

We appreciate all kinds of feedback, so please feel free to send a PR or create an issue.

teamcity-aws-sns-trigger-plugin's People

Contributors

burnasheva avatar julia-alexandrova avatar sugdyzhekov avatar wayfarer-rus avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

isabella232

teamcity-aws-sns-trigger-plugin's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.