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

ExportXMLWordPrintable

      Groovy script works in the script console but not in the Active Choices Reactive Reference Parameter.

      Log for the plugin gives:

      groovy.lang.MissingPropertyException: No such property: VSIM_PROJ for class: Script1

      Referenced Parameters: VSIM_PROJ,VSIM_BUILD

      groovy script:

      import jenkins.model.Jenkins
      import hudson.model.AbstractProject
      import hudson.model.Result
      import hudson.util.RunList
      
      AbstractProject<?, ?> otherJob = Jenkins.getInstance().getItemByFullName(VSIM_PROJ, AbstractProject.class)
      
      def otherBuild = otherJob.getBuildByNumber(VSIM_BUILD)
      def dispName = otherBuild.displayName
      
      return "${dispName }"
      

            Assignee:
            Bruno P. Kinoshita
            Reporter:
            Jason Grosch
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: