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

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

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 }

      }
      }
      }
      }

       

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

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

              Created:
              Updated:
              Resolved: