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

The referencedParameters property does't trigger properties

XMLWordPrintable

      Multiple assigment parameters in referencedParameters doesn't initialize its values properly.

      There're releaseBranch, releaseNumber and serviceName parameters (see the attached file).

      releaseNumber property depends on releaseBranch  

      and serviceName property depends on both releaseNumber and releaseBranch  

      The Groove script of releaseBranch returns "main" value always. This value is set up as first chosen parameter in the lookup component automatically.

      The Groovy script of releaseNumber depends on releaseBranch and return the list ([100, 101, 102, 103]). The lookup component initializes the default value 100 as well.

      It's expected that these two initialized values ("main" and 100) are available for the Groovy Script in serviceName, but it's not.

       

      When the page is refreshed the ['Could not get releaseBranch param'] and ['Could not get either releaseBranch or releaseNumber param(s)'] values are blinked. It points on executing fallbackScript scripts.

      Moreover the error has been picked up from the Jenkins log file when fallbackScript is not used in Jenkinsfile script (see attached jenkins.log file). A recorded video (15.10.2024_08.38.35_REC.mp4) shows infinity scrolling icon when fallbackScript is not used.   

       

       

       

      Release version is 
      2.8.4
       

        1. 15.10.2024_00.49.45_REC.mp4
          884 kB
          siarhei
        2. 15.10.2024_08.38.35_REC.mp4
          477 kB
          siarhei
        3. jenkins.log
          64 kB
          siarhei
        4. Jenkinsfile-1
          5 kB
          siarhei

            chudnikau siarhei
            chudnikau siarhei
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: