Neither path nor baseDir may be null or empty string on GitClone Task

When I execute the task cloneGitRepo

buildscript {

repositories {

maven {

url ‘http://10.1.28.189:8081/artifactory/plugins-release

}

}

dependencies {

classpath(group: ‘org.jfrog.buildinfo’, name: ‘build-info-extractor-gradle’, version: ‘3.0.1’)

classpath(group: ‘org.ajoberstar’, name: ‘gradle-git’, version: ‘0.2.3’ )

} }

allprojects {

apply plugin: ‘java’

apply plugin: ‘eclipse’

apply plugin: ‘com.jfrog.artifactory’ }

import org.ajoberstar.gradle.git.tasks.*

task cloneGitRepo(type: GitClone) {

doFirst{

def destination = file(“C:/gradle”)

uri = “http://cpd_helder@websrvfar01:7990/scm/adts/sqa-framework.git

destinationPath = destination

path = destinationPath

bare = false

enabled = true

} }

I have the error:

FAILURE: Build failed with an exception.

  • What went wrong: Neither path nor baseDir may be null or empty string. path=‘null’ basedir=‘C:\gradle\teste’

  • Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED