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

Extended choice parameter not using defaults on timed builds

      The extended choice parameter plugin (versions 0.59, 0.61) are not populating variables with default values on timed builds. But they do populate parameter variables for on demand builds.

      Reverting back to 0.56 works around this issue.

      The expected behaviour is that when the timer goes off the build is initiated with the default parameter values.

          [JENKINS-33921] Extended choice parameter not using defaults on timed builds

          vimil added a comment -

          Could you provide the settings you use?

          Are you using groovy script or property files to populate default values?

          vimil added a comment - Could you provide the settings you use? Are you using groovy script or property files to populate default values?

          Dave Taddei added a comment -

          Settings are as follows:

          1. Basic parameter types
          1.1 Checkbox parameter type
          1.2 Five visible items
          1.3 Comma delimiter
          1.6 Source for values is a property file
          1.7 Source for default value is a property file

          Yes we are using property files. The same property file contains the selectable parameters under one key and the default values under a different key. Property files are stored on the jenkins master under /var/lib/jenkins/userContent/ourBuild/ourProperties.properties

          We also see this behaviour for text box parameter types

          Dave Taddei added a comment - Settings are as follows: 1. Basic parameter types 1.1 Checkbox parameter type 1.2 Five visible items 1.3 Comma delimiter 1.6 Source for values is a property file 1.7 Source for default value is a property file Yes we are using property files. The same property file contains the selectable parameters under one key and the default values under a different key. Property files are stored on the jenkins master under /var/lib/jenkins/userContent/ourBuild/ourProperties.properties We also see this behaviour for text box parameter types

          Code changed in jenkins
          User: vimil
          Path:
          src/main/java/com/cwctravel/hudson/plugins/extended_choice_parameter/ExtendedChoiceParameterDefinition.java
          http://jenkins-ci.org/commit/extended-choice-parameter-plugin/7fc25af590962c33cd882575508570ad243d352d
          Log:
          fixing JENKINS-33921

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: vimil Path: src/main/java/com/cwctravel/hudson/plugins/extended_choice_parameter/ExtendedChoiceParameterDefinition.java http://jenkins-ci.org/commit/extended-choice-parameter-plugin/7fc25af590962c33cd882575508570ad243d352d Log: fixing JENKINS-33921

          vimil added a comment -

          fixed in 0.63

          vimil added a comment - fixed in 0.63

            vimil vimil
            drtaddei Dave Taddei
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: