title: I am getting syntax error in jenkins pipeline job
body: <pre><code>/data/jenkins/workspace/Clean Up SonarQube/clean-up-sonarqube@tmp/durable-a32f78e4/script.sh: 16: Syntax error: word unexpected (expecting &quot;)&quot;)
  [Pipeline] }
  [Pipeline] // dir
  [Pipeline] }
  [Pipeline] // withCredentials
  [Pipeline] }
  [Pipeline] // stage
  [Pipeline] }
  [Pipeline] // node
  [Pipeline] End of Pipeline
  ERROR: script returned exit code 2
  [BFA] Scanning build for known causes...
  [BFA] No failure causes found
  [BFA] Done. 2s
  Finished: FAILURE
  </code></pre>
  <p>I have a Jenkins job to clean up sonarqube projects depend on gitlab projects .
  The api in the script is not listing all branches from GITLAB. But if we run the api separately we get all the branches , the api is not working in the script . This issue result into a major issue of deleting the sonarqube projects.
  I have checked the GitLab, Jenkinsfile but I did not get any issue. So, what exactly is the issue here I am not able to figure out.</p>