Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-39263

No signature of method: javaposse.jobdsl.dsl.helpers.scm.GitCloneOptionsContext.depth() is applicable for argument types: (java.lang.Integer)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Major Major
    • job-dsl-plugin
    • None
    • job-dsl-plugin 1.5.1
      git-plugin 3.0.0

      I see the following in the docs (generated from my Jenkins instance):

      depth(int value)
      Set shallow clone depth, so that git will only download recent history of the project, saving time and disk space when you just want to access the latest version of a repository.


      but when I try to use it I get

      ERROR: (HelperBase.groovy, line 247) No signature of method: javaposse.jobdsl.dsl.helpers.scm.GitCloneOptionsContext.depth() is applicable for argument types: (java.lang.Integer) values: [50]
      Possible solutions: each(groovy.lang.Closure), with(groovy.lang.Closure), wait(), dump(), grep(), wait(long)
      

            daspilker Daniel Spilker
            jbochenski Jakub Bochenski
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: