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

Jenkinsfile: No such DSL method 'pipeline' found among steps

    Details

    • Similar Issues:

      Description

      Pipeline script from SCM. the settings is as scm.png presents.
      but it come out with the error "java.lang.NoSuchMethodError: No such DSL method 'pipeline' found among steps"

      in another issue. it was suggested that pipeline-model-definition-plugin should be installed. but i can't find it in the available plugin list.

      here is the Jenkinsfile:
      pipeline {
      agent any
      stages {
      stage('Utility Steps method') {
      steps {
      script

      { def files = findFiles(glob: '**/*.log') echo files[0].name //echo files[1].name }

      }
      }
      }
      }

       

      承太郎,快用你无敌的白金之星想想办法。

        Attachments

          Activity

          Hide
          nanchill Wale D added a comment -

          when i change the Jenkinsfile format from UTF-8 to ANSI. this problem come to the end.

          结果解决这个问题的还是我,dio哒

           

          Show
          nanchill Wale D added a comment - when i change the Jenkinsfile format from UTF-8 to ANSI. this problem come to the end. 结果解决这个问题的还是我,dio哒  
          Hide
          nanchill Wale D added a comment -

          木大哒

          Show
          nanchill Wale D added a comment - 木大哒

            People

            • Assignee:
              nanchill Wale D
              Reporter:
              nanchill Wale D
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: