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

Use the right API to get process' exitcode

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major Major
    • kubernetes-plugin
    • None

      The current kubernetes-client library doesn't properly support the `error` websocket channel, merging it into stderr instead.

      Because of this, getting the proper return code of a `sh` step involved parsing stderr, string manipulation, breaking other plugins that rely on stdout parsing too (e.g. pipeline-maven), and workarounds (https://github.com/jenkinsci/kubernetes-plugin/pull/242).

      https://github.com/fabric8io/kubernetes-client/pull/1045 adds proper support to the error channel, so the returned information can be fetched separately. See https://github.com/kubernetes-client/python/issues/297 as an example.

            csanchez Carlos Sanchez
            giannello Giuseppe Iannello
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: