title: How to tell gradlew to export lint results file to projectDir?
body: <p>I'm building an Android application using Jenkins pipeline and Gradle.</p>
  
  <p>I'd like to run Lint tests on the code and so the command which is used for that matter is:</p>
  
  <pre><code>./gradlew lintStagingDebug
  </code></pre>
  
  <p>For some reason this Gradle task is not creating the report.</p>
  
  <p>I know that if I'd run lint like so:</p>
  
  <pre><code>lint &lt;project_dir&gt; --xml xml_dest_path
  </code></pre>
  
  <p>It would create the report.</p>
  
  <p>But since through out the whole pipeline I'm using gradlew to run the relevant tasks (clean, lint, compile, unittest, assemble) I'd like to use gradlew for this task as well but I'm not sure how to tell Gradle to export the lint report.</p>
  
  <p>Another thing I've tried is to edit the <code>project/build.gradle</code> file and change this section:</p>
  
  <pre><code>lintOptions {
          abortOnError false
      }
  </code></pre>
  
  <p>to (according to <a href="http://apdr.qiniudn.com/com.android.build.gradle.internal.dsl.LintOptions.html" rel="nofollow noreferrer">Lint official documentation</a>)</p>
  
  <pre><code>lintOptions {
          abortOnError false
          xmlOutput projectDir/lint-results.xml
      }
  </code></pre>
  
  <p>But then I get an error:</p>
  
  <pre><code>A problem occurred evaluating project ':App01'.
  &gt; No signature of method: java.io.File.div() is applicable for argument types: (com.android.build.gradle.tasks.Lint_Decorated) values: [task ':App01:lint']
  </code></pre>
  
  <p>Anyone knows how it can be done?</p>