stable

Clone or download

Read-only

story #17992: trigger jenkins git notification without sha1

To work around the fact Jenkins doesn't poll the repositories when sha1 is given. See https://issues.jenkins.io/browse/JENKINS-25048 for details. At git repository level, for jenkins webhook, there is an option that can be checked to omit the sha1: * By default sha1 is added * Once checked, next trigger will be done without it This setting can only be configured at git repository level. Not at project level. If repository is using a jenkins server that is already defined at project level, then only one notification (per protocol) will be sent. You can test the hook by using an online webhook service like https://webhook.site/ Change-Id: Ic91f75ca4a554d651ce3474af9fa638da8b7b026

Modified Files

Name
M plugins/hudson_git/db/install.sql +1 −0 Go to diff View file
A plugins/hudson_git/db/mysql/updates/2020/202011161327_add_is_commit_reference_needded_column.php +46 −0 Go to diff View file
M plugins/hudson_git/include/HudsonGit/GitWebhooksSettingsEnhancer.php +3 −1 Go to diff View file
M plugins/hudson_git/include/HudsonGit/Hook/HookController.php +2 −1 Go to diff View file
M plugins/hudson_git/include/HudsonGit/Hook/HookDao.php +6 −5 Go to diff View file
M plugins/hudson_git/include/HudsonGit/Hook/HookTriggerController.php +76 −53 Go to diff View file
M plugins/hudson_git/include/HudsonGit/Hook/JenkinsClient.php +8 −2 Go to diff View file
M plugins/hudson_git/include/HudsonGit/Hook/ModalsPresenter.php +10 −1 Go to diff View file
M plugins/hudson_git/site-content/fr_FR/LC_MESSAGES/tuleap-hudson_git.po +16 −0 Go to diff View file
M plugins/hudson_git/templates/modal-jenkins.mustache +18 −1 Go to diff View file
M plugins/hudson_git/tests/unit/HudsonGit/Hook/HookTriggerControllerTest.php +88 −7 Go to diff View file
M plugins/hudson_git/tests/unit/HudsonGit/Hook/JenkinsClientTest.php +62 −4 Go to diff View file