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

pipeline shell expect : No such property... for class: groovy.lang.Binding

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • pipeline

      stage ('Deploy')

      { sh """#!/usr/bin/expect set test [pwd] echo "$test" }

       

      produces

       

      groovy.lang.MissingPropertyException: No such property: test for class: groovy.lang.Binding
      at groovy.lang.Binding.getVariable(Binding.java:63)
      at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor.onGetProperty(SandboxInterceptor.java:264)
      at org.kohsuke.groovy.sandbox.impl.Checker$6.call(Checker.java:289)

      ....

            Unassigned Unassigned
            jenbeg Hao Maio
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: