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

CLI and REST API buildWithParameters fail with file system list parameter plugin

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Blocker Blocker
    • None
    • Jenkins 2.462.3 and 2.479.1 with Filesystem List Parameter Plug-in
      Version 0.0.14

      The plugin is not able to receive the parameters when job build is triggered with REST API buildWithParameters.

      I tried with syntax:

      curl -X POST https://user:token@jenkins_address/job/jobname/buildWithParameters -F parameter=value

      And also:

      curl -X POST https://user:token@jenkins_address/job/jobname/buildWithParameters?parameter=value

      In either case the build starts, but the parameter value is not set.

      Could you please check it?

      Thanks

          [JENKINS-74886] CLI and REST API buildWithParameters fail with file system list parameter plugin

          Mark Waite added a comment -

          I can duplicate the problem with Jenkins 2.479.1 and with Jenkins 2.486 (weekly).

          Mark Waite added a comment - I can duplicate the problem with Jenkins 2.479.1 and with Jenkins 2.486 (weekly).

          Mark Waite added a comment - - edited

          I submitted a draft pull request https://github.com/jenkinsci/filesystem-list-parameter-plugin/pull/10 that upgrades the Jenkins minimum version to 2.479.1 but that draft pull request does not resolve the issue.

          Mark Waite added a comment - - edited I submitted a draft pull request https://github.com/jenkinsci/filesystem-list-parameter-plugin/pull/10 that upgrades the Jenkins minimum version to 2.479.1 but that draft pull request does not resolve the issue.

          Mark Waite added a comment -

          I can duplicate the problem with Jenkins 2.462.3 as well. The issue is not specific to Jenkins 2.479.1 or the transition to Jakarta EE 9 and Spring Security 6.

          Mark Waite added a comment - I can duplicate the problem with Jenkins 2.462.3 as well. The issue is not specific to Jenkins 2.479.1 or the transition to Jakarta EE 9 and Spring Security 6.

          Mark Waite added a comment -

          danalfst has this ever worked for you? If so, what version combination last worked for you?

          Mark Waite added a comment - danalfst has this ever worked for you? If so, what version combination last worked for you?

          Daniele added a comment -

          Hello Mark, this is my first try with REST API and FileSystemList

          Daniele added a comment - Hello Mark, this is my first try with REST API and FileSystemList

          Mark Waite added a comment -

          Thanks danalfst. It looks like there is a bug in the file system list parameter implementation that prevents the values of its parameters from being passed through the REST API or through the command line interface. The failing REST API example is shown by your curl command. The failing Jenkins CLI example looks like this:

          $ java -jar jenkins-cli.jar -s http://localhost:8080 -webSocket -auth mwaite:auth-token build a-parameter-file-system-list -p FS_LIST_PARAM=hudson.plugins.git.GitTool.xml
          ERROR: CLI parameter submission is not supported for the class alex.jenkins.plugins.FileSystemListParameterDefinition type. Please file a bug report for this
          

          We'll need to rely on the plugin maintainer to fix that bug. I don't see an obvious workaround for it.

          Mark Waite added a comment - Thanks danalfst . It looks like there is a bug in the file system list parameter implementation that prevents the values of its parameters from being passed through the REST API or through the command line interface. The failing REST API example is shown by your curl command. The failing Jenkins CLI example looks like this: $ java -jar jenkins-cli.jar -s http: //localhost:8080 -webSocket -auth mwaite:auth-token build a-parameter-file-system-list -p FS_LIST_PARAM=hudson.plugins.git.GitTool.xml ERROR: CLI parameter submission is not supported for the class alex.jenkins.plugins.FileSystemListParameterDefinition type. Please file a bug report for this We'll need to rely on the plugin maintainer to fix that bug. I don't see an obvious workaround for it.

          Mark Waite added a comment -

          Closing as a duplicate of the issue that was reported previously as JENKINS-60978

          Mark Waite added a comment - Closing as a duplicate of the issue that was reported previously as JENKINS-60978

            Unassigned Unassigned
            danalfst Daniele
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: