title: How to create dynamic checkbox parameter in Jenkins pipeline?
body: <p>I found out how to create input parameters dynamically from this <a href="https://stackoverflow.com/a/45216570/2748513">SO answer</a></p>
  <pre><code>    agent any
      stages {
          stage(&quot;Release scope&quot;) {
              steps {
                  script {
                      // This list is going to come from a file, and is going to be big.
                      // for example purpose, I am creating a file with 3 items in it.
                      sh &quot;echo \&quot;first\nsecond\nthird\&quot; &gt; ${WORKSPACE}/list&quot;
  
                      // Load the list into a variable
                      env.LIST = readFile (file: &quot;${WORKSPACE}/list&quot;)
  
                      // Show the select input
                      env.RELEASE_SCOPE = input message: 'User input required', ok: 'Release!',
                              parameters: [choice(name: 'CHOOSE_RELEASE', choices: env.LIST, description: 'What are the choices?')]
                  }
                  echo &quot;Release scope selected: ${env.RELEASE_SCOPE}&quot;
              }
          }
      }
  }
  </code></pre>
  <p>This allows us to choose only one as it's a <code>choice</code> parameter, how to use the same list to create checkbox parameter, so the user can choose more than one as needed? e.g: if the user chooses <code>first</code> and <code>third</code>, then the last echo should print
  <code>Release scope selected: first,third</code> or the following is fine too, so I can iterate over and find the <em>true</em> ones <code>Release scope selected: {first: true, second: false, third: true}</code></p>