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
3. open http://localhost:8080/jenkins/
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.
demo-plugin.zip
<https://drive.google.com/file/d/1qrgBF6YwNRKtIQfJyFs_yuMEzOh7aYC9/view?usp=drive_web>
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-dev/CAHf8TqjcsucjXm3ogkC8fOHwzt-JB7zkdjVXvyCBDjRm9A1iYQ%40mail.gmail.com.
jenkins.log
Description: Binary data
