在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):Mindera/gradle-slack-plugin开源软件地址(OpenSource Url):https://github.com/Mindera/gradle-slack-plugin开源编程语言(OpenSource Language):Java 64.4%开源软件介绍(OpenSource Introduction):gradle-slack-pluginGradle 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. UsageThe 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' ConfigurationFirst you need to setup slack to receive incoming messages:
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()
}
CreditsSlack WebHook Java API by gpedro Licensegradle-slack-plugin is available under the MIT license. See the LICENSE file for more info. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论