[JIRA] (JENKINS-57998) Jenkinsfile: No such DSL method 'pipeline' found among steps

6 views
Skip to first unread message

zwq562327187@163.com (JIRA)

unread,
Jun 13, 2019, 2:51:46 AM6/13/19
to jenkinsc...@googlegroups.com
Wale D created an issue
 
Jenkins / Bug JENKINS-57998
Jenkinsfile: No such DSL method 'pipeline' found among steps
Issue Type: Bug Bug
Assignee: Andrew Bayer
Components: pipeline-model-definition-plugin
Created: 2019-06-13 06:50
Priority: Major Major
Reporter: Wale D

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 }

}
}
}
}

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

zwq562327187@163.com (JIRA)

unread,
Jun 13, 2019, 2:52:02 AM6/13/19
to jenkinsc...@googlegroups.com

zwq562327187@163.com (JIRA)

unread,
Jun 13, 2019, 2:53:03 AM6/13/19
to jenkinsc...@googlegroups.com

zwq562327187@163.com (JIRA)

unread,
Jun 13, 2019, 3:46:01 AM6/13/19
to jenkinsc...@googlegroups.com
Wale D started work on Bug JENKINS-57998
 
Change By: Wale D
Status: Open In Progress

zwq562327187@163.com (JIRA)

unread,
Jun 13, 2019, 3:47:03 AM6/13/19
to jenkinsc...@googlegroups.com

zwq562327187@163.com (JIRA)

unread,
Jun 13, 2019, 3:49:03 AM6/13/19
to jenkinsc...@googlegroups.com
Wale D updated an issue
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
                }

            }
        }
    }
}


 

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

zwq562327187@163.com (JIRA)

unread,
Jun 13, 2019, 3:49:04 AM6/13/19
to jenkinsc...@googlegroups.com
Wale D commented on Bug JENKINS-57998
 
Re: Jenkinsfile: No such DSL method 'pipeline' found among steps

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

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

 

zwq562327187@163.com (JIRA)

unread,
Jun 13, 2019, 3:50:02 AM6/13/19
to jenkinsc...@googlegroups.com

zwq562327187@163.com (JIRA)

unread,
Jun 13, 2019, 3:50:02 AM6/13/19
to jenkinsc...@googlegroups.com

zwq562327187@163.com (JIRA)

unread,
Jun 13, 2019, 3:50:02 AM6/13/19
to jenkinsc...@googlegroups.com
 

木大哒

Change By: Wale D
Status: In Review Resolved
Assignee: Andrew Bayer Wale D
Resolution: Fixed

bitwiseman@gmail.com (JIRA)

unread,
Oct 22, 2019, 11:19:02 PM10/22/19
to jenkinsc...@googlegroups.com
Liam Newman closed an issue as Fixed
Change By: Liam Newman
Status: Resolved Closed
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages