the branch name should be available with the workspace env env.BRANCH_NAME
I have a few jobs where I use it to only allow triggered jobs if the branch is master.
if (env.BRANCH_NAME == 'master')
H 19 * * * %param=value
Hi, I believe that BRANCH_NAME is only populated when running a multi-branch pipeline. FYI then.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.