title: "Could not complete execution for Gradle Test Executor 2" error appears after gradle execution on bitbucket pipelines
body: <p>Tools used:</p>
  
  <pre><code>Java 8
  Gradle 4.0
  Selenium
  Selenium Grid
  TestNG
  Docker
  Bitbucket
  Bitbucket pipelines
  </code></pre>
  
  <p>When I'm executing my tests via bitbucket pipelines I've got these errors:</p>
  
  <ol>
  <li><p>"Could not complete execution for Gradle Test Executor 2" error (not whole suite executed. Total tests count: 29, executed 9, failed 2. One assertion error and another one is "Could not complete execution for Gradle Test Executor 2"; <a href="https://i.stack.imgur.com/dHb2k.png" rel="noreferrer"><img src="https://i.stack.imgur.com/dHb2k.png" alt="enter image description here"></a></p></li>
  <li><p>If I did an execution again sometimes I have this error: "Failed Container 'docker' exceeded memory limit."<a href="https://i.stack.imgur.com/QaHMK.png" rel="noreferrer"><img src="https://i.stack.imgur.com/QaHMK.png" alt="enter image description here"></a></p></li>
  </ol>
  
  <p>Everything works fine when I'm running the tests locally. Any ideas on how this can be fixed?</p>