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

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      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 }

      }
      }
      }
      }

       

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

            Assignee:
            Wale D
            Reporter:
            Wale D
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: