Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-44354

System Groovy Choice Parameter stopped

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

            ricardinho_rio Ricardo Morais
            ricardinho_rio Ricardo Morais
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: