Workflow- step struct way to display

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

Workflow- step struct way to display

Nikhil Bhoski
Hi ,

I am developing pipeline solution by extending Step class now my step looks something like below when i write DSL to invoke it. 

pipeline {
    agent any
    stages{
        stage('Run Tests') {
            steps
            {
               
                        RunMyTests(
                                        tapChkBx:true,
                                        junitChkBx:true,
                                        coberturaChkBx:true,
                                        stmResultsChkBx:true,
                                        modelCoverageChkBx:true,
                                        pdfReportChkBx:true
 
                                       )
                }
                 
            }
                  
        }
    }
}


now can implement my step to be invoked without brackets "()" and rather with "{}"  i want it to be invoked like as shown below.

pipeline {
    agent any
    stages{
        stage('Run Tests') {
            steps
            {
               
                        RunMyTests {
                                        tapChkBx:true,
                                        junitChkBx:true,
                                        coberturaChkBx:true,
                                        stmResultsChkBx:true,
                                        modelCoverageChkBx:true,
                                        pdfReportChkBx:true
 
                                       }
                }
                 
            }
                  
        }
    }
}


Regards
Nikhil 

--
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/60d5ab02-2523-4d24-8a4f-d419c5538fcd%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: Workflow- step struct way to display

Jesse Glick-4
On Thu, May 14, 2020 at 2:16 AM Nikhil Bhoski <[hidden email]> wrote:
> now can implement my step to be invoked without brackets "()" and rather with "{}"

You cannot.

--
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/CANfRfr1NxyaLNwHZj7%3D9nJcZ2w%3D10wj0X4xhD%2BpjJ8Kc2KADJA%40mail.gmail.com.