Outbound WebHook for Jenkins build events
Configure your Jenkins URL in Jenkins > Configuration
section:
Add Outbound Webhook notification
to Post-build Actions
:
{
"buildName": "#16",
"buildUrl": "http://my-jenkins-url.com/job/test%20job/16/",
"event": "success",
"projectName": "test job"
}
event
has three possible values: start
, success
, failure
.
./gradlew build
./gradlew test
./gradlew server
Visit http://localhost:8080
The frist time you visit it, you are required to go through the setup process. Please don't install any third-party plugins. This plugin we currently working on will be installed by default.
I use the following credential for testing:
admin/admin
Of course you don't have to copy my example.
Create a tag on GitHub: outbound-webhook-plugin-<version>
.
Create file ~/.jenkins-ci.org
with the following content:
userName=username
password=password
Note: The credentials are from https://accounts.jenkins.io/.
Run ./gradlew clean publish
.