title: Cannot see gradle bootrun task logs in Jenkins
body: <p>I wanted to see gradle bootrun task logs for application start up active profile, server port etc. when run in the pipeline. Below is the my build.gradle task</p>
  <pre><code>task bootRunStartIt {
      doFirst {
          println(&quot;Starting application it profile&quot;)
          ext.process = new ProcessBuilder().directory(projectDir)
                  .command(&quot;./gradlew&quot;, &quot;bootRun&quot;, &quot;--args='--spring.profiles.active=it&quot;)
                  .start()
      }
  }
  </code></pre>
  <p>I can see the logs when I run in <code>gradlew bootRun --args=&quot;--spring.profiles.active=it&quot;</code> local windows machine. However in Jenkins just this</p>
  <pre><code>&gt; Task :bootRunStartIt
  
  Starting application it profile
  </code></pre>
  <p>Only difference is <code>bootRunStartIt</code> task calling from some other task with <code>dependOn</code> as below</p>
  <pre><code>task healthCheck(dependsOn: bootRunStartIt) {
  
      doFirst {
  .....
  </code></pre>