'How to restart build in jenkins (github pull request) after adding a label

I have created a pull request, after creating pull request the jenkins job will be started. this job runs only onece, I do want to restart jenkins job after pushing something new in the branch.

my idea is that the jenkins job will be only restarted, if I add a label such as "rebuild"

enter image description here

My question is, how can I setup in Jenkins configuartion?



Solution 1:[1]

It is not possible to restart the build by adding a label when using the GitHub Pull Request builder plugin.

By default, the plugin is configured to trigger a new build when you add a new comment with the phrase retest this please to the pull request (you can change the phrase in the plugin configuration)

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 VANAN