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

sh DSL is missing from the workflow plugin

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Blocker Blocker
    • pipeline
    • None
    • jenkins-1.654

      It seems that the documentation of the workflow plugin from https://github.com/jenkinsci/workflow-plugin/blob/master/TUTORIAL.md give examples of the usage of the "sh" DSL, but the installation of the plugin does not provide these.

      Somehow it seems that the "sh" is missing

      java.lang.NoSuchMethodError: No such DSL method 'sh' found among [ansiblePlaybook, build, checkout, git, input, jiraComment, jiraIssueSelector, jiraSearch, load, node, parallel, properties, slackSend, sshagent, stage, stash, svn, unstash, ws]
      	at org.jenkinsci.plugins.workflow.cps.DSL.invokeMethod(DSL.java:107)
      	at org.jenkinsci.plugins.workflow.cps.CpsScript.invokeMethod(CpsScript.java:113)
      	at groovy.lang.GroovyObject$invokeMethod.call(Unknown Source)
      	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
      	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
      	at org.kohsuke.groovy.sandbox.impl.Checker$1.call(Checker.java:151)
      

            jglick Jesse Glick
            ssbarnea Sorin Sbarnea
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: