I\'m running Jenkins 2 with the Pipeline plugin. I have setup a Multi-branch Pipeline project where each branch (master, develop, etc.) has a Jenkinsfile in the root. Settin
This is working for me:
triggers { cron(env.BRANCH_NAME == 'development' ? 'H */12 * * *' : '') }
See more in this article