Skip to content

warlordofmars/gradle-slack-liveupdate

Repository files navigation

gradle-slack-liveupdate

latest jitpack build

slack screenshot

Overview

Gradle Plugin to provide build status updates to Slack in real-time as Gradle executes through tasks

Setup

To use this plugin, the following buildscript repositories and dependencies must be configured:

buildscript {
  repositories {
    maven { url 'https://jitpack.io' }
  }
  dependencies {
    classpath 'com.github.warlordofmars:gradle-slack-liveupdate:release-0.3.12'
  }
}

Then to apply the plugin:

apply plugin: 'com.github.warlordofmars.gradle.slack'

To configure:

slack {

    // the slack channel to update during build
    channel '<slack_channel>'

    // slack api token (OAuth or Bot) with appropriate permissions
    token '<slack_api_token>'

    // flag for enabling slack functionality
    // (useful for disabling for local builds)
    enabled true

}

Example Config

Here is an example of configuration that gets the Slack token out from a property value and only enables slack functionality during Jenkins builds:

slack {
  channel 'jenkins'
  enabled System.env.containsKey('JENKINS_URL')
  token getProperty('slack.token)
}

Versioning

Versioning on this project is applied automatically on all changes using the axion-release-plugin. Git tags are created for all released versions, and all available released versions can be viewed in the Releases section of this project.

Author

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

About

Gradle Plugin to provide build status updates to Slack in real-time as Gradle executes through tasks

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages