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

sh DSL is missing from the workflow plugin

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Blocker
    • Resolution: Not A Defect
    • Component/s: pipeline
    • Labels:
      None
    • Environment:
      jenkins-1.654
    • Similar Issues:

      Description

      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)
      

        Attachments

          Activity

          Hide
          jglick Jesse Glick added a comment -

          Somehow you neglected to install the Pipeline: Durable Task Step plugin.

          Show
          jglick Jesse Glick added a comment - Somehow you neglected to install the Pipeline: Durable Task Step plugin.

            People

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

              Dates

              • Created:
                Updated:
                Resolved: