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

No signature of method: groovy.util.Node.div() when use sandbox

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Minor Minor
    • job-dsl-plugin
    • None
    • Jenkins version 2.204.4
      Job-dsl version 1.77

      When running the following example using the sandbox option:

      job('test')
      {
        scm {
          hg("http://test_repo") {
          configure { node ->
            node / browser(class: 'hudson.plugins.mercurial.browser.BitBucket') / "url" << "test"
            }
          }
        }
      }
      

      I get the following error:

      ERROR: (script, line 6) No signature of method: groovy.util.Node.div() is applicable for argument types: (groovy.util.Node) values: [browser[attributes={class=hudson.plugins.mercurial.browser.BitBucket}; value=[]]]
      Possible solutions: is(java.lang.Object), wait(), find(), dump(), any(), wait(long)
      

      The problem is gone when the sandbox is disabled or the piece of code works fine when run in http://job-dsl.herokuapp.com/.

            jrivero Jose Luis Rivero
            jrivero Jose Luis Rivero
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: