Can a single Bitbucket repository trigger multiple Jenkins jobs?
I was able to successfully trigger one Jenkins job with a push to the Bitbucket repository, but when attempting to create another Jenkins job for the same repository, it did not work. However, I am able to manually start a build from the repository. Both jobs are targeted for different branches.
It's worth noting that I tried using Jenkins multibranch pipeline, which worked for my needs, but it did not provide environment variables for each job. Instead, I had to specify them in my Jenkinsfile, which is not ideal. I want the Jenkinsfile for each branch to be the same to avoid merge conflicts.