I have developed a custom Jenkins plugin which extends *Recorder *and 
implements *SimpleBuildStep*. I was calling this plugin using the syntax:

pipeline {
    agent any
    stages {
        stage('Build and Run Tests') {
            steps {
                step([$class : 'TestClass', name: 'admin', lastname: 
'admin', endPoint:'http://localhost:8080/', file:'path/to/myfile.txt'])
            }
        }
    }
}


With this the plugin is executed, but now my requirement is to call this 
plugin with the different pipeline syntax which is our primary requirement. 
The required syntax is as follows:

pipeline {
    agent any
     stages {
         stage('Build and Run Tests') {
              steps {
                   TestClass name:'admin' lastname: 'admin' endPoint: 
'http://localhost:8080/', file:'path/to/myfile.txt'
              }
          }
     }
}


But I am not able to call the same plugin with the above syntax. Can anyone 
please help me?

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/db5c1523-75e2-4969-ba26-54dede193291%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to