Using an arbitrary plugin in Jenins 2 Pipeline scripts

前端 未结 2 1461
失恋的感觉
失恋的感觉 2021-01-20 01:39

Using the Snippet Generator tool in Jenkins 2, I can setup a plugin like I would within a job, and then it will generate me the Groovy I can use in my Pipeline scri

2条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-20 02:28

    To be complete you need to know that snippet generator only shows compatible plugins that declare a specific help page in plugin's code. If we take the example of docker-workflow plugin, you can see in the code that it defines a help page for DockerDSL, which means that a Snippet Generator will be available for DockerDSL step.

    Therefore you should always check Jenkins plugins compatibility page (as arasio mentionned it) and not what you see in Snippet Generator.

提交回复
热议问题