#Jenkins https://www.jenkins.io/doc/book/pipeline/multibranch/#additional-environment-variables 環境変数`BRANCH_NAME`を使う。