Since we moved to Jenkins Blue ocean and GitHub Branch Source plugin from ghprb, we started missing the functionality of triggering Jenkins builds from GitHub comments. Call it commentOps
We were used to commenting Test this please
on PR
s to trigger tests on Jenkins.
So this small service brings back the good Ol functionality.
well, there is a docker image at puneethn/jenkinstestthisplease:latest
You could start off by downloading this repo and running make start
.
However, there are somethings you might want to have for it to work.
- Get hold of your
JENKINS_USERNAME
,JENKINS_PASSWORD
andJENKINS_URL
- Determine your
JENKINS_ORG
. This can be the name of your organization. ex:jenkinsci
- Determine your
JENKINS_PROJECT
. This can be the name of your project. ex:jenkins
- Determine your
JENKINS_BUILD_PARAMS
(if any). This can be something likefoo=bar&lorem=ipsum&...
- Generate a strong
GITHUB_S2S_SECRET
for your webhook so that GitHub signs each event with it. - Setup the GitHub webhook
- Set all the
CAPITALIZED
variables as environment variables (You can also refer to thedocker-compose.yml
) and Deploy to the address setup in the webhook. - goto
http://127.0.0.1/swagger
- Comment on your
PR
something like "Baby test this please", "Darling test this please", "Jenkins, test this please" and see your PR's being built.
- Support multiple projects
- Support whielisting and Blacklisting Users
- Fix Swagger spec