System Groovy Choice Parameter stopped

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

XMLWordPrintable

      After updating the Jenkins to 2.46.2 and the plugin to 1.4.0, it stopped to running the groovy script.

      I was able to run the same script in the scriptlet area of Jenkins.

       

      grupos = []

      grupos << "Selecione uma opção"

      hudson.model.Hudson.instance.slaves.each{
      grupo = it.getLabelString().tokenize().find{
      it.matches("grupo_.*")
      }

      if (grupo != null) {
      grupo = grupo.substring(6)
      if ((grupo in grupos) == false){
      grupos << grupo
      }
      }
      }

      return grupos

            Assignee:
            Ricardo Morais
            Reporter:
            Ricardo Morais
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: