{"id":35671,"date":"2026-11-28T22:06:20","date_gmt":"2026-11-28T22:06:20","guid":{"rendered":"https:\/\/www.devopsschool.com\/blog\/?p=35671"},"modified":"2026-11-28T22:06:20","modified_gmt":"2026-11-28T22:06:20","slug":"jenkins-tutorials-meaning-of-class-in-scripted-pipeline","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/jenkins-tutorials-meaning-of-class-in-scripted-pipeline\/","title":{"rendered":"Jenkins Tutorials: Meaning of $class in scripted pipeline"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">In a Jenkins Pipeline, <code>$class<\/code> is a special map key that tells Jenkins which plugin or core class to create when a step or property accepts more than one possible implementation, as in <code>checkout([$class: &#039;GitSCM&#039;, ...])<\/code>. This page explains how <code>$class<\/code> works, when you still need it, how it maps to the shorter symbol syntax, and how to fix the errors it most often causes.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In Jenkins pipeline scripts, the <code>$class<\/code> parameter is used to specify the class or type of an object. The complete list of <code>$class<\/code> values depends on the specific plugins and extensions installed in your Jenkins instance. Each plugin or extension may introduce its own set of classes that can be used in the pipeline script.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">However, here are some common <code>$class<\/code> values that are frequently used in Jenkins pipeline scripts:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>'ChoiceParameter'<\/code>: Represents a parameter with a choice or selection.<\/li>\n\n\n\n<li><code>'CascadeChoiceParameter'<\/code>: Represents a parameter with cascading choices or selections.<\/li>\n\n\n\n<li><code>'GroovyScript'<\/code>: Represents a script block containing Groovy code.<\/li>\n\n\n\n<li><code>'StringParameterDefinition'<\/code>: Represents a parameter for accepting a string value.<\/li>\n\n\n\n<li><code>'BooleanParameterDefinition'<\/code>: Represents a parameter for accepting a boolean value.<\/li>\n\n\n\n<li><code>'RunParameterDefinition'<\/code>: Represents a parameter for selecting a specific Jenkins run or build.<\/li>\n\n\n\n<li><code>'FileParameterDefinition'<\/code>: Represents a parameter for accepting a file as input.<\/li>\n\n\n\n<li><code>'TextParameterDefinition'<\/code>: Represents a parameter for accepting multiline text as input.<\/li>\n\n\n\n<li><code>'PasswordParameterDefinition'<\/code>: Represents a parameter for accepting a password or sensitive information.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">These are just a few examples, and the available <code>$class<\/code> values can vary depending on the plugins and extensions installed in your Jenkins environment. It&#8217;s recommended to refer to the documentation of the specific plugins you are using to determine the supported <code>$class<\/code> values and their configurations.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">What $class actually does<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Many Pipeline steps take an argument whose type is an *extension point*: an abstract type that several plugins can implement. <code>checkout<\/code> accepts any SCM (Git, Subversion and others), <code>properties<\/code> accepts any job property, and <code>parameters<\/code> accepts any parameter definition. When you pass a Groovy map for one of these arguments, Jenkins needs to know which concrete class to build, and the <code>$class<\/code> key tells it. Every other key in the map is passed to that class&#039;s <code>@DataBoundConstructor<\/code> arguments or <code>@DataBoundSetter<\/code> properties.<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-1\" data-shcb-language-name=\"PHP\" data-shcb-language-slug=\"php\"><span><code class=\"hljs language-php\"><span class=\"hljs-comment\">\/\/ $class picks the implementation; the other keys configure it<\/span>\ncheckout(&#91;\n  $class: <span class=\"hljs-string\">'GitSCM'<\/span>,\n  branches: &#91;&#91;name: <span class=\"hljs-string\">'*\/main'<\/span>]],\n  userRemoteConfigs: &#91;&#91;url: <span class=\"hljs-string\">'https:\/\/github.com\/example\/app.git'<\/span>]],\n  extensions: &#91;&#91;$class: <span class=\"hljs-string\">'CleanBeforeCheckout'<\/span>]]\n])<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-1\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PHP<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">php<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p class=\"wp-block-paragraph\">The value is usually the simple class name, such as <code>GitSCM<\/code>. If two installed plugins define classes with the same simple name, use the fully qualified name instead, for example <code>$class: &#039;hudson.plugins.git.GitSCM&#039;<\/code>. The Structs plugin, which every Pipeline installation depends on, does this conversion.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Note:<\/strong> <code>$class<\/code> is not limited to scripted Pipeline. It works the same way in Declarative Pipeline, for example inside <code>steps { checkout([$class: &#039;GitSCM&#039;, ...]) }<\/code> or in a <code>script<\/code> block.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">$class versus symbols<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Plugin authors can add a <code>@Symbol<\/code> annotation to their classes. When a class has a symbol, you can call it like a function instead of writing a <code>$class<\/code> map. Symbols are shorter and easier to read, and the Snippet Generator produces them today. The <code>$class<\/code> form is still useful when a plugin has no symbol. This is common for older plugins and for nested objects such as Git extensions.<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-2\" data-shcb-language-name=\"PHP\" data-shcb-language-slug=\"php\"><span><code class=\"hljs language-php\"><span class=\"hljs-comment\">\/\/ $class form<\/span>\nproperties(&#91;\n  &#91;$class: <span class=\"hljs-string\">'BuildDiscarderProperty'<\/span>,\n    strategy: &#91;$class: <span class=\"hljs-string\">'LogRotator'<\/span>, numToKeepStr: <span class=\"hljs-string\">'10'<\/span>]],\n  &#91;$class: <span class=\"hljs-string\">'ParametersDefinitionProperty'<\/span>, parameterDefinitions: &#91;\n    &#91;$class: <span class=\"hljs-string\">'StringParameterDefinition'<\/span>, name: <span class=\"hljs-string\">'VERSION'<\/span>,\n      defaultValue: <span class=\"hljs-string\">'1.0.0'<\/span>, description: <span class=\"hljs-string\">'Release version'<\/span>],\n    &#91;$class: <span class=\"hljs-string\">'BooleanParameterDefinition'<\/span>, name: <span class=\"hljs-string\">'RUN_TESTS'<\/span>,\n      defaultValue: <span class=\"hljs-keyword\">true<\/span>, description: <span class=\"hljs-string\">'Run the test stage'<\/span>]\n  ]]\n])\n\n<span class=\"hljs-comment\">\/\/ Equivalent symbol form (preferred when available)<\/span>\nproperties(&#91;\n  buildDiscarder(logRotator(numToKeepStr: <span class=\"hljs-string\">'10'<\/span>)),\n  parameters(&#91;\n    string(name: <span class=\"hljs-string\">'VERSION'<\/span>, defaultValue: <span class=\"hljs-string\">'1.0.0'<\/span>, description: <span class=\"hljs-string\">'Release version'<\/span>),\n    booleanParam(name: <span class=\"hljs-string\">'RUN_TESTS'<\/span>, defaultValue: <span class=\"hljs-keyword\">true<\/span>, description: <span class=\"hljs-string\">'Run the test stage'<\/span>)\n  ])\n])<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-2\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PHP<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">php<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p class=\"wp-block-paragraph\">Both blocks produce the same job configuration. The table below lists each class from the post above with its symbol and the plugin that provides it.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>$class value<\/th><th>Symbol<\/th><th>Provided by<\/th><th>Notes<\/th><\/tr><\/thead><tbody><tr><td><code>StringParameterDefinition<\/code><\/td><td><code>string<\/code><\/td><td>Jenkins core<\/td><td>Single-line text<\/td><\/tr><tr><td><code>TextParameterDefinition<\/code><\/td><td><code>text<\/code><\/td><td>Jenkins core<\/td><td>Multi-line text<\/td><\/tr><tr><td><code>BooleanParameterDefinition<\/code><\/td><td><code>booleanParam<\/code><\/td><td>Jenkins core<\/td><td>Checkbox; value is a real boolean in <code>params<\/code><\/td><\/tr><tr><td><code>ChoiceParameterDefinition<\/code><\/td><td><code>choice<\/code><\/td><td>Jenkins core<\/td><td>Static drop-down list<\/td><\/tr><tr><td><code>PasswordParameterDefinition<\/code><\/td><td><code>password<\/code><\/td><td>Jenkins core<\/td><td>Masked input; prefer credentials for real secrets<\/td><\/tr><tr><td><code>RunParameterDefinition<\/code><\/td><td><code>run<\/code><\/td><td>Jenkins core<\/td><td>Selects a build of another job<\/td><\/tr><tr><td><code>FileParameterDefinition<\/code><\/td><td>none usable<\/td><td>Jenkins core<\/td><td>Not supported in Pipeline jobs; see corrections<\/td><\/tr><tr><td><code>ChoiceParameter<\/code><\/td><td>check Snippet Generator<\/td><td>Active Choices plugin<\/td><td>Drop-down filled by a Groovy script<\/td><\/tr><tr><td><code>CascadeChoiceParameter<\/code><\/td><td>check Snippet Generator<\/td><td>Active Choices plugin<\/td><td>Choices that react to other parameters<\/td><\/tr><tr><td><code>GroovyScript<\/code><\/td><td>none<\/td><td>Active Choices plugin<\/td><td>Script model used inside Active Choices parameters<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Corrections to the list above<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>$class<\/code> is not a parameter. It is a reserved map key that selects the class Jenkins should create from that map.<\/li>\n\n\n<li><code>ChoiceParameter<\/code>, <code>CascadeChoiceParameter<\/code> and <code>GroovyScript<\/code> are not built in. They come from the <strong>Active Choices<\/strong> plugin, and they fail with an unknown-implementation error if that plugin is not installed. The core static choice parameter is <code>ChoiceParameterDefinition<\/code> (symbol <code>choice<\/code>).<\/li>\n\n\n<li><code>GroovyScript<\/code> is not a general script block. It is the Active Choices object that holds the script, plus a fallback script, used to generate parameter values.<\/li>\n\n\n<li><code>FileParameterDefinition<\/code> does not work in Pipeline jobs because the uploaded file never reaches the workspace. Use the <strong>File Parameters<\/strong> plugin instead, which provides <code>base64File<\/code> and <code>stashedFile<\/code>.<\/li>\n\n\n<li>Most of the core <code>*ParameterDefinition<\/code> classes have symbols (<code>string<\/code>, <code>text<\/code>, <code>booleanParam<\/code> and so on). Symbols are the recommended syntax in current Pipeline code.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Example: Active Choices parameters with $class<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Active Choices is where you still see <code>$class<\/code> most often, because most published examples use the map form. The scripted Pipeline below defines an environment drop-down and a region drop-down whose options change based on the selected environment. It requires the Active Choices plugin.<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-3\" data-shcb-language-name=\"PHP\" data-shcb-language-slug=\"php\"><span><code class=\"hljs language-php\">properties(&#91;\n  parameters(&#91;\n    &#91;$class: <span class=\"hljs-string\">'ChoiceParameter'<\/span>,\n      name: <span class=\"hljs-string\">'ENVIRONMENT'<\/span>,\n      description: <span class=\"hljs-string\">'Target environment'<\/span>,\n      choiceType: <span class=\"hljs-string\">'PT_SINGLE_SELECT'<\/span>,\n      filterable: <span class=\"hljs-keyword\">false<\/span>,\n      script: &#91;$class: <span class=\"hljs-string\">'GroovyScript'<\/span>,\n        script: &#91;classpath: &#91;], sandbox: <span class=\"hljs-keyword\">true<\/span>,\n                 script: <span class=\"hljs-string\">'return &#91;\"dev\", \"staging\", \"prod\"]'<\/span>],\n        fallbackScript: &#91;classpath: &#91;], sandbox: <span class=\"hljs-keyword\">true<\/span>,\n                 script: <span class=\"hljs-string\">'return &#91;\"error\"]'<\/span>]\n      ]\n    ],\n    &#91;$class: <span class=\"hljs-string\">'CascadeChoiceParameter'<\/span>,\n      name: <span class=\"hljs-string\">'REGION'<\/span>,\n      description: <span class=\"hljs-string\">'Region for the selected environment'<\/span>,\n      choiceType: <span class=\"hljs-string\">'PT_SINGLE_SELECT'<\/span>,\n      referencedParameters: <span class=\"hljs-string\">'ENVIRONMENT'<\/span>,\n      filterable: <span class=\"hljs-keyword\">false<\/span>,\n      script: &#91;$class: <span class=\"hljs-string\">'GroovyScript'<\/span>,\n        script: &#91;classpath: &#91;], sandbox: <span class=\"hljs-keyword\">true<\/span>, script: <span class=\"hljs-string\">''<\/span><span class=\"hljs-string\">'\n          if (ENVIRONMENT == \"prod\") { return &#91;\"us-east-1\", \"eu-west-1\"] }\n          return &#91;\"us-east-1\"]\n        '<\/span><span class=\"hljs-string\">''<\/span>],\n        fallbackScript: &#91;classpath: &#91;], sandbox: <span class=\"hljs-keyword\">true<\/span>,\n                 script: <span class=\"hljs-string\">'return &#91;\"error\"]'<\/span>]\n      ]\n    ]\n  ])\n])\n\nnode {\n  stage(<span class=\"hljs-string\">'Deploy'<\/span>) {\n    <span class=\"hljs-keyword\">echo<\/span> <span class=\"hljs-string\">\"Deploying to ${params.ENVIRONMENT} in ${params.REGION}\"<\/span>\n  }\n}<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-3\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PHP<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">php<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<ul class=\"wp-block-list\">\n<li><code>choiceType<\/code> controls the widget: <code>PT_SINGLE_SELECT<\/code>, <code>PT_MULTI_SELECT<\/code>, <code>PT_RADIO<\/code> or <code>PT_CHECKBOX<\/code>.<\/li>\n\n\n<li><code>referencedParameters<\/code> lists the parameters whose values are passed into the cascade script as variables. Separate multiple names with commas.<\/li>\n\n\n<li><code>fallbackScript<\/code> runs if the main script throws an error, so the form still renders.<\/li>\n\n\n<li>The inner <code>script<\/code> maps are Script Security sandbox scripts. If a script calls methods the sandbox does not allow, an administrator must approve them under <strong>Manage Jenkins &gt; In-process Script Approval<\/strong>.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Note:<\/strong> Parameters defined with <code>properties<\/code> only appear after the Pipeline has run once. Run the job once (it uses default or empty values). After that, <strong>Build with Parameters<\/strong> shows the new form.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Other places you will see $class<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Outside parameters, <code>$class<\/code> appears mostly in older Pipelines and in steps that wrap freestyle build features. The comment on each line shows the modern equivalent.<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-4\" data-shcb-language-name=\"PHP\" data-shcb-language-slug=\"php\"><span><code class=\"hljs language-php\">step(&#91;$class: <span class=\"hljs-string\">'ArtifactArchiver'<\/span>, artifacts: <span class=\"hljs-string\">'target\/*.jar'<\/span>])   <span class=\"hljs-comment\">\/\/ archiveArtifacts 'target\/*.jar'<\/span>\nstep(&#91;$class: <span class=\"hljs-string\">'JUnitResultArchiver'<\/span>, testResults: <span class=\"hljs-string\">'**\/TEST-*.xml'<\/span>]) <span class=\"hljs-comment\">\/\/ junit '**\/TEST-*.xml'<\/span>\nwrap(&#91;$class: <span class=\"hljs-string\">'TimestamperBuildWrapper'<\/span>]) { sh <span class=\"hljs-string\">'make'<\/span> }         <span class=\"hljs-comment\">\/\/ timestamps { sh 'make' }<\/span>\ncheckout(&#91;$class: <span class=\"hljs-string\">'GitSCM'<\/span>, branches: &#91;&#91;name: <span class=\"hljs-string\">'*\/main'<\/span>]],\n          userRemoteConfigs: &#91;&#91;url: <span class=\"hljs-string\">'https:\/\/github.com\/example\/app.git'<\/span>]]])\n                                                               <span class=\"hljs-comment\">\/\/ git url: '...', branch: 'main'<\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-4\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PHP<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">php<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<h2 class=\"wp-block-heading\">How to find the right $class value and keys<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Open any Pipeline job and click <strong>Pipeline Syntax<\/strong>, or go to <code>JENKINS_URL\/job\/&lt;job-name&gt;\/pipeline-syntax<\/code>.<\/li>\n\n\n<li>In the <strong>Snippet Generator<\/strong>, choose a step such as <code>properties<\/code>, <code>checkout<\/code> or <code>step<\/code>, fill in the form, and click <strong>Generate Pipeline Script<\/strong>. The output uses a symbol where one exists and falls back to <code>$class<\/code> where it does not.<\/li>\n\n\n<li>For Declarative <code>options<\/code>, <code>parameters<\/code> and <code>triggers<\/code>, use the <strong>Declarative Directive Generator<\/strong> on the same page.<\/li>\n\n\n<li>Look up the class&#039;s <code>@DataBoundConstructor<\/code> and <code>@DataBoundSetter<\/code> fields in the plugin&#039;s documentation or source. The map accepts only these keys.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Note:<\/strong> Write the key as <code>$class:<\/code> (unquoted) or <code>&#039;$class&#039;:<\/code> (single quotes). Do not use double quotes: <code>&quot;$class&quot;<\/code> is a Groovy GString, so Groovy tries to substitute a variable named <code>class<\/code>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Common errors and fixes<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Symptom<\/th><th>Cause<\/th><th>Fix<\/th><\/tr><\/thead><tbody><tr><td>Error saying there is no known implementation of a type named <code>X<\/code><\/td><td>The plugin that provides <code>X<\/code> is not installed, or the name is misspelled<\/td><td>Install the plugin (for example Active Choices) or correct the class name<\/td><\/tr><tr><td>Error about an ambiguous class name<\/td><td>Two plugins define a class with the same simple name<\/td><td>Use the fully qualified class name in <code>$class<\/code><\/td><\/tr><tr><td>Warning about unknown parameters for a class, and the setting is ignored<\/td><td>A map key does not match any constructor argument or setter<\/td><td>Regenerate the snippet with the Snippet Generator and copy the exact key names<\/td><\/tr><tr><td>Parameters do not appear in the UI<\/td><td>The <code>properties<\/code> step has not run yet<\/td><td>Run the job once, then use <strong>Build with Parameters<\/strong><\/td><\/tr><tr><td>Settings made in the job UI disappear<\/td><td><code>properties<\/code> replaces the job&#039;s properties on every run<\/td><td>Define all job properties in the Jenkinsfile, not partly in the UI<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Best practices<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Use symbols when they exist. Keep <code>$class<\/code> for classes that have no symbol.<\/li>\n\n\n<li>Keep job properties and parameters in the Jenkinsfile so they are versioned and reviewed along with the pipeline.<\/li>\n\n\n<li>Do not collect real secrets through password parameters. Store them as Jenkins credentials and read them with <code>withCredentials<\/code>.<\/li>\n\n\n<li>Test plugin upgrades before rolling them out. Class names and fields belong to plugins, so a major plugin release can rename or remove them.<\/li>\n\n\n<li>For more Pipeline syntax, see the <a href=\"https:\/\/www.devopsschool.com\/blog\/jenkins-pipeline-complete-reference-tutorials\/\">Jenkins Pipeline Complete Reference Tutorials<\/a>.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Frequently asked questions<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">What does $class mean in a Jenkinsfile?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">It is a special map key that names the concrete class Jenkins should create when a step or property accepts several possible implementations. The other keys in the map configure that class.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Should I use $class or the symbol syntax?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Use the symbol syntax, such as <code>string(...)<\/code> or <code>buildDiscarder(logRotator(...))<\/code>, whenever the plugin provides one, because it is shorter and easier to read. Use <code>$class<\/code> only for classes without a symbol.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Does $class work in Declarative Pipeline?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Yes. Scripted and Declarative Pipelines use the same conversion, so <code>$class<\/code> maps work inside <code>steps<\/code>, inside <code>script<\/code> blocks and as step arguments in either style.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Why do I get a &#039;no known implementation&#039; error with $class?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Either the class name is wrong or the plugin that provides it is not installed. Check the spelling, install the plugin, or use the fully qualified class name if the simple name is ambiguous.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Where do ChoiceParameter and CascadeChoiceParameter come from?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">They come from the Active Choices plugin, not Jenkins core. The core static drop-down is <code>ChoiceParameterDefinition<\/code>, available as the <code>choice<\/code> symbol.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Related tutorials<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.devopsschool.com\/blog\/jenkins-pipeline-complete-reference-tutorials\/\">Jenkins Pipeline Complete Reference Tutorials<\/a><\/li>\n\n\n<li><a href=\"https:\/\/www.devopsschool.com\/blog\/environment-variables-and-properties-defined-in-jenkins\/\">Environment variables and properties defined in jenkins | Jenkins Tutorial<\/a><\/li>\n\n\n<li><a href=\"https:\/\/www.devopsschool.com\/blog\/top-50-jenkin-pipeline-interview-questions-and-answers\/\">Top 50 Jenkin pipeline interview questions and answers<\/a><\/li>\n\n\n<li><a href=\"https:\/\/www.devopsschool.com\/blog\/category\/devops\/jenkins\/\">More Jenkins tutorials<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>In a Jenkins Pipeline, $class is a special map key that tells Jenkins which plugin or core class to create when a step or property accepts more&#8230; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[42],"tags":[437,26190,26191],"class_list":["post-35671","post","type-post","status-publish","format-standard","hentry","category-jenkins","tag-groovy","tag-jenkins-pipeline","tag-jenkins-plugins"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/35671","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=35671"}],"version-history":[{"count":2,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/35671\/revisions"}],"predecessor-version":[{"id":80403,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/35671\/revisions\/80403"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=35671"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=35671"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=35671"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}