title: Gradle Build Error in Jenkins - build.gradle: only whitespace content allowed before start tag and not b
body: <p>When I'm trying to run a Gradle project on Jenkins,<br>
  Im facing the following error after my solution method becomes a build success.
  Therefore the entire build is getting failed. But the same project is executing perfectly on local machine without any error. This particular error is only raised on Jenkins.</p>
  
  <blockquote>
    <p>BUILD SUCCESSFUL<br>
    Total time: 47.936 secs<br>
    Stopped 0 compiler daemon(s).   </p>
    
    <p>Build step 'Invoke Gradle script' changed build result to SUCCESS<br>
    Parsing POMs<br>
    ERROR: Failed to parse POMs<br>
    org.apache.maven.project.ProjectBuildingException: Some problems were encountered while processing the POMs:<br>
    [FATAL] Non-parseable POM /var/lib/jenkins/workspace/ProjectOne/build.gradle: only whitespace content allowed before start tag and not b (position: START_DOCUMENT seen b... @1:1)  @ line 1, column 1</p>
  </blockquote>
  
  <p>Any idea about a method to solve it?</p>
  
  <p>As for the Stack Reference on this <a href="https://stackoverflow.com/questions/22449689/maven-fails-to-parse-poms-at-jenkins">question</a>, I tried to ensure the <em>config properties</em> in the Jenkins on <em>Build > Advance</em> Settings according to the verified answer. But it didn't resolve the failure. Could be because it is specified to Maven instead of Gradle.</p>