I am trying to setup build pipeline in azure devops for my android application. I am trying to trigger build with a basic auto generated yml file. The pipeline remains stuck at "agent connecting" for a while and then build fails with error "##[error]Error: The process '/Users/vsts/agent/2.158.0/work/1/s/gradlew' failed with exit code 1".
My yml file contents are
- master
pool:
vmImage: 'macos-latest'
steps:
- task: Gradle@2
inputs:
workingDirectory: ''
gradleWrapperFile: 'gradlew'
gradleOptions: '-Xmx3072m'
publishJUnitResults: false
testResultsFiles: '**/TEST-*.xml'
tasks: 'assembleDebug'