title: jenkins groovy shell curl command not working
body: <p>While running the curl command using sh in Jenkins pipeline, the curl GET request after &quot;&amp;&quot; is not getting sent.</p>
  <pre><code>pipeline{
    agent{
        node{
            label 'xxxx'
        }
    }
    stages{
      stage('first'){
        steps{
          script{
            def url = 'xxxxx/sonar/api/qualitygates'
            def project = 'xxxx'
            def pr = 'xxx'
            sh &quot;curl -u xxxx: ${url}/project_status?projectKey=${project}&amp;branch=${pr}&quot;
          }
        }
      }
    }
  }
  </code></pre>
  <p>Somehow the &quot;&amp;&quot; and anything after that is not read during command execution.</p>
  <p>Console output in Jenkins</p>
  <pre><code>+ branch=xxxx
  + curl -u xxxx: 'xxxxxx/sonar/api/qualitygates/project_status?projectKey=xxxxx'
    % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                   Dload  Upload   Total   Spent    Left  Speed
  
    0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  
  </code></pre>