Script step to take a text box

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      (this is more just a question, so I dont' forget)

      I noted that the script step just allows normal children steps, but this doesn't quite make sense. I thought the idea was that this would take arbitrary script content (perhaps a text box, or a wider selection of steps, or something).

      Related, if I paste in the following pipeline:

      pipeline {
          
          agent any 
          stages {
              stage('first') {
                  steps {
                      script {
                          sh 'echo 42'
                          
                      }
                      
                  }
              }
          }
          
      }
      

      then I don't see a way to get to the "echo 42" shell script step.

            Assignee:
            Keith Zantow
            Reporter:
            Michael Neale
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: