• Stars
    star
    153
  • Rank 243,368 (Top 5 %)
  • Language
    Java
  • License
    MIT License
  • Created over 9 years ago
  • Updated about 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Gradle plugin to send messages to Slack after each build

gradle-slack-plugin

Gradle plugin to send Slack messages according to your build lifecycle. Useful to integrate with a CI server, to notify everyone that some gradle task has failed.

Build Passing Build Failing

Usage

The plugin is available in JitPack. Just add the following to your buildscript dependencies:

buildscript {

    repositories {
    	....
        maven {
            url "https://jitpack.io"
        }
    }
    
    dependencies {
    	...
        classpath 'com.github.Mindera:gradle-slack-plugin:1.0.7'
    }
}

Apply it:

apply plugin: 'com.mindera.gradle.slack'

Configuration

First you need to setup slack to receive incoming messages:

  1. Go to your_team.slack.com/services/new/incoming-webhook
  2. Press Add Incoming WebHooks Integration
  3. Grab your WebHook URL

Then in your build.gradle file:

slack {
    url 'your WebHook URL'
}

By default, everytime a build fails a slack message will be sent to the channel you configured. If a build succeeds nothing happens.

There are more optional fields that enable you to configure the slack integration:

slack {
    url 'your WebHook URL'
    dependsOnTasks 'testDebug', 'publishApkRelease'
    title 'my app name'
    enabled = isCDMachine()
}
  • dependsOnTasks: let you specify a list of tasks that will trigger a message to slack, in case of error and success;
  • title: the title of the slack message, can be the name of your app for instance;
  • enabled: a boolean to define if the slack integration is active or not, useful to avoid sending messages on your local builds.

Credits

Slack WebHook Java API by gpedro

License

gradle-slack-plugin is available under the MIT license. See the LICENSE file for more info.

More Repositories

1

Alicerce

A base for iOS Applications made with ❤️ by Mindera 🤠
Swift
472
star
2

fastlane-plugin-cosigner

A fastlane plugin to help you sign your iOS builds
Ruby
25
star
3

skeletoid

Bootstrapping and Utils code for Android applications 🤖made at Mindera 💛
Kotlin
24
star
4

pm2-cookbook

Chef cookbook to install and manage PM2.
Ruby
23
star
5

muton

A feature toggle tool with support for feature throttling and multivariance testing.
JavaScript
15
star
6

autism

This platform enables parents, care takers or volunteers to collaboratively measure their child's progress against development models, track objectives, sessions and general changes such as diet, sleep habits, etc.
Java
15
star
7

traffic-splitter

Direct HTTP traffic to a determined upstream
JavaScript
12
star
8

mtalks

Mindera Talks
TypeScript
10
star
9

fe-techday-workshop

JavaScript
8
star
10

angularStates

Angular JS Service for managing service states (saving / restoring / invalidating)
HTML
8
star
11

jenkins-pipeline-library

Jenkins pipeline shared library containing useful actions 🔧🤖
Groovy
8
star
12

cfgmgmtcamp_meta-jjb-root

Shell
6
star
13

testrail-report-wrapper

Ruby
6
star
14

latte-pageobject

Create your page objects with a fluid, creamy and delicious BDD-like API for browser automation.
JavaScript
6
star
15

MinderaPeople-iOS

Swift
5
star
16

fastlane-actions

Fastlane plugins made with ❤️ at Mindera
Ruby
5
star
17

ready-set-go-workshop

Workshop in University of Aveiro aimed to provide a fast integration with Go programming language.
Go
5
star
18

gradle-versioncode-plugin

Gradle plugin to manage an application version code inside its continuous integration lifecycle.
Groovy
5
star
19

ansible-role-chef_solo_runner

4
star
20

fastlane-plugin-logme

Ruby
4
star
21

MinderaPeople-Android

Objective-C
4
star
22

http-record

Record http(s) sessions
JavaScript
4
star
23

cfgmgmtcamp_jenkins_a_la_travis

Shell
3
star
24

techday-nailing-microservices

Java
3
star
25

Lodge

A logging library for Kotlin Multiplatform
Kotlin
3
star
26

ui-automation-chalenge

UI Test Automation Challenge
JavaScript
3
star
27

tech-accelerator-test-playwright

Technology accelerator to deploy a playwright test automation suite
TypeScript
3
star
28

iOS-KMP-Template

Swift
2
star
29

MinderaDesignSystem-iOS

Swift
2
star
30

twemproxy-cookbook

Cookbook to install and manage Twemproxy
Ruby
2
star
31

Android-KMP-Template

Android KMP Template
Kotlin
1
star
32

Alfie-iOS

This repo is part of Alfie: a project to boostrap eCommerce Projects (Front-end mobile/web and BE and Graph APIs)
Swift
1
star
33

mindera.github.io

The Mindera Blog
CSS
1
star
34

logFilterAutoStarter

Java
1
star
35

mindera-angular-utils

AngularJS Utils
JavaScript
1
star
36

gradius-server

A RADIUS Server implementation that provides authentication using google accounts.
JavaScript
1
star
37

Xcode-build-number

A small script to automate the include of the build number in the Settings.bundle.
Shell
1
star
38

carbon-relay-ng-cookbook

Chef coookbook to install and manage carbon-relay-ng
Ruby
1
star
39

buzz-ci

Control your CI with buzz controllers
TypeScript
1
star
40

logFilter

Java
1
star
41

version-code-service

Very simple web service that keeps track of an internal current version code (build number) for a given app.
Go
1
star
42

dummy-card-api

Simple server exposing dummy data for display on cards.
1
star