Use the right API to get process' exitcode

XMLWordPrintable

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major
    • Component/s: 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.

            Assignee:
            Carlos Sanchez
            Reporter:
            Giuseppe Iannello
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: