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

Pipeline Steps should be able to filter arguments being persisted to the disk

    Details

    • Similar Issues:

      Description

      In JENKINS-50633 the plugin accepts Maven's Model class as an argument. Although it is a bad design, we cannot do much with that. But we can at least invoke the step within the NonCPS closure. In such case the value won't be persisted to the context, but the argument will be still persisted... and Cause JEP-200.

      It would be great to allow parameters to filter-away/mock options which are not supposed to be persisted.

      There is existing ArgumentsActionImpl#sanitizeAndRecordMutation() API in the class, which can invoke defineArguments(). It is not working in this case, because it does not take the really passed parameters into account. So there may be issues with default arguments if any.

      I propose to add new API.

        Attachments

          Issue Links

            Activity

            There are no comments yet on this issue.

              People

              • Assignee:
                oleg_nenashev Oleg Nenashev
                Reporter:
                oleg_nenashev Oleg Nenashev
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: