I’m working on declarative pipeline. I want to trigger the job on specific commit like “Release to SIT”. For this purpose, there was a plugin “commit-message-trigger-plugin”https://plugins.jenkins.io/commit-message-trigger-plugin/, which is suspended.
Is there any way to configure a Jenkins job to trigger a build on specific commit message?
You could always download the plugin and install it manually, but it hasn’t been updated for 7 years.
I think a .sh or .bat script file would be helpful for your use case, reading the commit message and deciding if you should build or not.
Please have a look at :