Fwd: Struggling with "java.lang.NoSuchMethodError: No such DSL method"

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Fwd: Struggling with "java.lang.NoSuchMethodError: No such DSL method"

yusuf zainee

Hello,
My name is Yusuf and i work for Redhat. I am trying to create a plugin which can be used as a jenkins pipeline step. I have attached the source code zip.

I have a step declared as 'crdaAnalysis' which i am trying to call via the pipeline script.
Here is the sample script that i am trying
node{
    echo 'hello world'
    echo pwd()
    echo 'blah blah blah'
    dir('../../plugins') {
        echo pwd()
        crdaAnalysis file:'abcdefg', uuid:'yusuf'
    }
}

But i end up with errors like java.lang.NoSuchMethodError: No such DSL method 'crdaAnalysis' found among steps [archive, bat ......] (log attached)

Steps to reproduce:
1. mvn clean install 2. mvn hpi:run
4. Create a new pipeline.
5. Click configure, add the sample script which intends to call the step function crdaAnalysis
6. Build

As i am very new to jenkins, i am not able to find a way to get rid of this error. Any help from anyone would be greatly appreciated.

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CAHf8TqjcsucjXm3ogkC8fOHwzt-JB7zkdjVXvyCBDjRm9A1iYQ%40mail.gmail.com.

jenkins.log (9K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Struggling with "java.lang.NoSuchMethodError: No such DSL method"

Jesse Glick-4
Since I am not inclined to download a 178Mb ZIP file, maybe you point readers to a source permalink or something? Or create a minimal self-contained test case.

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CANfRfr2axjJJu6ykvaSG1fiJ4oWNnGkPE%3DxPH9PJEJ82xsDjfg%40mail.gmail.com.