45.5k views
4 votes
Which Step Types allow having groovy code ?

User Vmvadivel
by
7.4k points

1 Answer

3 votes

Final answer:

Jenkins, a CI/CD automation server, allows Groovy code to be run in step types like the 'script' step, which is part of its pipeline scripting capabilities.

Step-by-step explanation:

The question pertains to step types which are constructs in Continuous Integration/Continuous Deployment (CI/CD) pipelines that allow the execution of Groovy code. Groovy is a dynamic scripting language for the Java platform, and its usage in CI/CD pipelines is common when using Jenkins, a widely known automation server. In Jenkins, the step types that allow running Groovy code are mainly found within a Pipeline script, which is written in a specific domain-specific language (DSL) based on Groovy. The most commonly used step types that support Groovy scripting are the 'script' step, which can contain Groovy expressions or blocks of code directly, and Groovy-based steps provided by various plugins, which extend the Jenkins pipeline capabilities.

User KPandian
by
7.2k points