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

ATH: Configuring the default value of a "Password" job parameter fails

XMLWordPrintable

      This started to fail on 2.236, after JENKINS-61808.

       

      When running some ATHs that are configuring a Job with a 'Password' parameter, can not set it's default value:

      org.openqa.selenium.NoSuchElementException: Unable to locate By.cssSelector: [path='/properties/hudson-model-ParametersDefinitionProperty/parameterDefinitions/defaultValue'] in http://127.0.0.1:51242/job/established_willpower/configure
      

      To reproduce it:

      @Describable("Password Parameter")
      public class PasswordParameter extends Parameter {
          public PasswordParameter(Job job, String path) {
              super(job, path);
          }
      
          @Override
          public void fillWith(Object v) {
              control("value").set(v.toString());
          }
      }
      

       

      @Test
      public void buildParametrized() {
          FreeStyleJob j = jenkins.jobs.create(FreeStyleJob.class);
          j.configure();
          j.addParameter(PasswordParameter.class).setName("password").setDefault("foopass").setDescription("apass");
          j.save();
      }
      

       

       

            ealvarez Esther Álvarez Feijoo
            ealvarez Esther Álvarez Feijoo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: