Checking if a branch exists in Jenkins shell script

前端 未结 0 912
庸人自扰
庸人自扰 2021-02-02 14:59

I am having a trouble checking if a branch exists in a Jenkins job. My shell scripts is as follows:

   set +e
   BRANCH_EXISTS=$(git ls-remote --quiet | grep -w $         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题