Specifying branch name for jenkins job through AnyStatus
Oh, I figured it out. I just went to the job configuration, activated the "build is parameterized" checkbox, added a string parameter called BRANCH, and in the "branches to build" section added ${BRANCH}. Pretty much what is explained here:


https://stackoverflow.com/questions/20359810/how-to-trigger-jenkins-builds-remotely-and-to-pass-parameters
https://stackoverflow.com/questions/32108380/jenkins-how-to-build-a-specific-branch