I\'m working with declarative pipeline syntax. My jenkins files are stored on a git hub repository, separated from the code to build, so I set up the jenkins job to get the pipe
Possible workarounds:
If the webhook is not configured at GitHub org level, disable webhook for the repository where your Jenkinsfile is located
OR
In the Jenkins job configuration, under Pipeline > Additional Behaviours > Add, select Polling ignores commits in certain paths. Then, in the Excluded Regions textbox, specify the Jenkinsfile path or .* to exclude everything.