On Tuesday, February 2, 2016 at 5:14:54 PM UTC-5, Tom Kierzkowski wrote:
>
>
>    - How do you test your scripts within your IDE/development setup?
>    
>    
>  I do not use and IDE, but I was shown these two plugins which show a way 
of testing pipeline scripts:

   - https://github.com/jenkinsci/simple-build-for-pipeline-plugin
   - https://github.com/jenkinsci/simple-travis-runner-plugin

Both require you to implement your pipeline code as a Jenkins plugin, which 
is the only way I have found to really test pipeline code. In fact they go 
one step further, it's almost like they let you define your own DSL, on top 
of the pipeline DSL.

With the simple-build-for-pipeline-plugin, you can access the env and the 
build parameters from the simpleBuild {} closure by using "this.env" and 
"this.PARAM", e.g. simpleBuild { var = this.PARAM }. Tooks me a while to 
figure this one out.

Martin

-- 
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/40e6aae2-02ae-4d8e-a1b9-ea7406f101e3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to