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

Managed Scripts plugin 1.5.2 doesn't save Defined arguments

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • managed-scripts-plugin
    • None
    • Jenkins 2.274
      Managed Scripts Plugin 1.5.2

      Managed Scripts plugin 1.5.2 doesn't save jobs Defined arguments, and fails on jobs execution because required arguments are not set.

          [JENKINS-64554] Managed Scripts plugin 1.5.2 doesn't save Defined arguments

          Francis Labrie created issue -

          Francis Labrie added a comment - - edited

          Log example:

          executing script 'App Store Download Statistics'
          [iOS Application Statistics] $ /bin/sh /var/folders/fm/zhsywfqj34nb8r1jbjh4q6s00000gp/T/build_step_template6679885015774512085.sh
          Starting script with the following arguments:
            Product Identifier = 
            Start Date = 
            Backup Directory = 
          /var/folders/fm/zhsywfqj34nb8r1jbjh4q6s00000gp/T/build_step_template6679885015774512085.sh|139| error| Missing Product Identifier argument.
          

          I need to revert to Jenkins 2.273 and Managed Scripts 1.4 plugin to get it working again.

          Francis Labrie added a comment - - edited Log example: executing script 'App Store Download Statistics' [iOS Application Statistics] $ /bin/sh / var /folders/fm/zhsywfqj34nb8r1jbjh4q6s00000gp/T/build_step_template6679885015774512085.sh Starting script with the following arguments: Product Identifier = Start Date = Backup Directory = / var /folders/fm/zhsywfqj34nb8r1jbjh4q6s00000gp/T/build_step_template6679885015774512085.sh|139| error| Missing Product Identifier argument. I need to revert to Jenkins 2.273 and Managed Scripts 1.4 plugin to get it working again.
          Dominik Bartholdi made changes -
          Assignee Original: Dominik Bartholdi [ domi ]

          I've updated the Token Macro Plugin to version 2.14, and I still have the issue: Defined arguments are not saved anymore.

          Francis Labrie added a comment - I've updated the Token Macro Plugin to version 2.14, and I still have the issue: Defined arguments are not saved anymore.
          Julio Morimoto made changes -
          Attachment New: 2021-01-07_18-52.png [ 53765 ]
          Julio Morimoto made changes -
          Attachment New: 2021-01-07_18-53.png [ 53766 ]
          Julio Morimoto made changes -
          Attachment New: screenshot-1.png [ 53767 ]

          I can confirm this as well. Jenkins 2.274, Managed Scripts 1.5.2.

          Edit script parameters:

          Save job. Return to job configuration. All parameters are lost.

          On a side note, ruling out any client side scripts malfunction... it's possible to see form parameters being sent during the post request.

          Julio Morimoto added a comment - I can confirm this as well. Jenkins 2.274, Managed Scripts 1.5.2. Edit script parameters: Save job. Return to job configuration. All parameters are lost. On a side note, ruling out any client side scripts malfunction... it's possible to see form parameters being sent during the post request.

          Even if Tokenized is unchecked, parameters are still lost. So Token Macro Plugin likely has nothing to do with this.

          Julio Morimoto added a comment - Even if Tokenized is unchecked, parameters are still lost. So Token Macro Plugin likely has nothing to do with this.
          Super made changes -
          Attachment New: image-2021-01-08-18-53-04-235.png [ 53782 ]

            gbigenios Gbi
            flabrie Francis Labrie
            Votes:
            2 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: