Use the right API to get process' exitcode

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      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.

            Assignee:
            Carlos Sanchez
            Reporter:
            Giuseppe Iannello
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: