0

I have a project that I would like to build in Bamboo with a specific version of Gradle. However, when Bamboo executes ./gradlew I get

Failing task since return code of [./gradlew clean build sonarRunner] was -1 while expected 0

How do I fix this?

Phyxx
  • 15,730
  • 13
  • 73
  • 112

1 Answers1

0

In my case I was checking in the script into SVN from Windows, and Bamboo was running on a RHEL server. To get ./gradlew to work, I needed to set the svn:executable property to true on the gradlew file.

enter image description here

Phyxx
  • 15,730
  • 13
  • 73
  • 112