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

Pipeline job does not fail when serialization of Pipeline steps arguments fails within NonCPS

      Discovered it during testing of JENKINS-50665

      Example (for nonCPS wrapper which may not work correctly as jglick mentioned in the PR):

      nonCPS.exec() { 
          def formatter = new org.jfree.chart.axis.QuarterDateFormat()
          printTimestamp arg1: 'foo', formatter: formatter, persistFormatter: true
      }
      

          [JENKINS-50670] Pipeline job does not fail when serialization of Pipeline steps arguments fails within NonCPS

          Oleg Nenashev created issue -
          Oleg Nenashev made changes -
          Labels New: JEP-200 diagnostics
          Oleg Nenashev made changes -
          Link New: This issue relates to JENKINS-50633 [ JENKINS-50633 ]

          Oleg Nenashev added a comment -

          Oleg Nenashev added a comment - Reproduced the issue in https://github.com/jenkinsci/workflow-cps-plugin/pull/218 (autotest)
          Oleg Nenashev made changes -
          Remote Link New: This issue links to "https://github.com/jenkinsci/workflow-cps-plugin/pull/218 (Web Link)" [ 20396 ]
          Oleg Nenashev made changes -
          Description Original: Discovered it during testing of JENKINS-50665 New: Discovered it during testing of JENKINS-50665

          Example (for nonCPS wrapper which may not work correctly as [~jglick] mentioned in the PR):

          {code:java}
          nonCPS.exec() {
            def formatter = new org.jfree.chart.axis.QuarterDateFormat()
              printTimestamp arg1: 'foo', formatter: formatter, persistFormatter: true
          }
          {code}
          Oleg Nenashev made changes -
          Description Original: Discovered it during testing of JENKINS-50665

          Example (for nonCPS wrapper which may not work correctly as [~jglick] mentioned in the PR):

          {code:java}
          nonCPS.exec() {
            def formatter = new org.jfree.chart.axis.QuarterDateFormat()
              printTimestamp arg1: 'foo', formatter: formatter, persistFormatter: true
          }
          {code}
          New: Discovered it during testing of JENKINS-50665

          Example (for nonCPS wrapper which may not work correctly as [~jglick] mentioned in the PR):

          {code:java}
          nonCPS.exec() {
              def formatter = new org.jfree.chart.axis.QuarterDateFormat()
              printTimestamp arg1: 'foo', formatter: formatter, persistFormatter: true
          }
          {code}

          Jesse Glick added a comment -

          As designed I think. ArgumentsAction represents a best effort at recording metadata. If something cannot be recorded, so be it—the program continues and metadata is incomplete.

          Jesse Glick added a comment - As designed I think. ArgumentsAction represents a best effort at recording metadata. If something cannot be recorded, so be it—the program continues and metadata is incomplete.
          Jesse Glick made changes -
          Resolution New: Not A Defect [ 7 ]
          Status Original: Open [ 1 ] New: Closed [ 6 ]

          Sam Van Oort added a comment -

          Yes, as designed. ArgumentAction data is considered 'noncritical.'

          Sam Van Oort added a comment - Yes, as designed. ArgumentAction data is considered 'noncritical.'

            Unassigned Unassigned
            oleg_nenashev Oleg Nenashev
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: