Jenkins Multibranch (Pipeline) / Branch tracking
A multibranch pipeline job will run for all branches in a repository and discover new branches on the crontab schedule you specify in the pipeline config.
If you want different behavior per branch you can do this:
script { if( "${env.BRANCH_NAME}" == "master" ) { .... } if( "${env.BRANCH_NAME}" == "integration" ) { .... }}