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

java.lang.NullPointerException on URL-triggered jobs with 0.9.14

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • git-parameter-plugin
    • None
    • 0.9.15

      We trigger some of our jobs on schedule using an external cron. To trigger the jobs, we do a POST to the /view/.../job/.../buildWithParameters URL and pass it the node where build should happen plus username and password for basic authentication.

      The SCM used is Git. The branch specifier is set to tags/${TAG}

      The jobs we use has a Git Parameter with a name set to TAG and the type set to "Tag". It has a default value which is observed when using 0.9.13.

      After upgrading 0.9.13 -> 0.9.14, this results in:

      2022-01-16 04:00:01.654+0000 [id=7841] WARNING o.e.j.s.h.ContextHandler$Context#log: Error while serving https://jenkins.example.com/view/SomeView/job/SomeJob/buildWithParameters
      java.lang.NullPointerException
      at net.uaznia.lukanus.hudson.plugins.gitparameter.GitParameterDefinition.createValue(GitParameterDefinition.java:106)
      at hudson.model.ParametersDefinitionProperty.buildWithParameters(ParametersDefinitionProperty.java:185)
      at jenkins.model.ParameterizedJobMixIn.doBuildWithParameters(ParameterizedJobMixIn.java:238)
      at jenkins.model.ParameterizedJobMixIn$ParameterizedJob.doBuildWithParameters(ParameterizedJobMixIn.java:418)
      at java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:627)
      at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:393)

      When the job is triggered from the web UI, it works properly with both 0.9.13 and 0.9.14. however, with 0.9.14 it no longer works when the job is triggered by the URL.

       

            klimas7 Boguslaw Klimas
            assen_totin Assen Тотин
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: