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

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


    • Similar Issues:


      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.


          Issue Links


            oleg_nenashev Oleg Nenashev created issue -
            oleg_nenashev Oleg Nenashev made changes -
            Field Original Value New Value
            Link This issue relates to JENKINS-50633 [ JENKINS-50633 ]
            oleg_nenashev Oleg Nenashev made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            oleg_nenashev Oleg Nenashev made changes -
            Status In Progress [ 3 ] In Review [ 10005 ]
            oleg_nenashev Oleg Nenashev made changes -
            Remote Link This issue links to "https://github.com/jenkinsci/workflow-cps-plugin/pull/218 (Web Link)" [ 20394 ]


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


                • Created: