• Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • dotnet-sdk-plugin
    • None

      When running Jenkins with Kubernetes runners, and using this plugin, each and every log line in the resulting console is duplicated.

          [JENKINS-71977] .NET SDK Support Plugin duplicate logs

          Interesting; it's not something I've seen before (and I don't have ready access to Kubernetes runners).
          Will try to investigate when I have time.

          Tim Van Holder added a comment - Interesting; it's not something I've seen before (and I don't have ready access to Kubernetes runners). Will try to investigate when I have time.

          I don't see any obvious things that might be going wrong on my end.

          Is it really all lines, or just those that contain warnings/errors?
          I could understand there being problems with such lines getting decorated twice (but even then probably only if you used both the wrapper and the commands).

          Is this a freestyle job or a pipeline? Are you using the wrapper ("With .NET" / withDotNet()) or the steps or both?
          Can you add a screenshot of an example build?

          Tim Van Holder added a comment - I don't see any obvious things that might be going wrong on my end. Is it really all lines, or just those that contain warnings/errors? I could understand there being problems with such lines getting decorated twice (but even then probably only if you used both the wrapper and the commands). Is this a freestyle job or a pipeline? Are you using the wrapper ("With .NET" / withDotNet() ) or the steps or both? Can you add a screenshot of an example build?

          Evengard added a comment - - edited

          Hello!

          I mostly stopped using that plugin actually, including because of this problem, and also because was trying to workaround this bug: https://github.com/dotnet/sdk/issues/27106#issuecomment-1709090812.

          I was using the steps only (without using withDotNet) inside the official mcr.microsoft.com/dotnet/sdk:6.0 image inside Kubernetes, I pulled one of my older builds now where I was still using it.

          It is a multibranch pipeline job.

          Each line (not just warnings, every single line) is duplicated, see this screenshot as an example

          Here I used the dotnetPublish step, but each other step behaves the same.

          Evengard added a comment - - edited Hello! I mostly stopped using that plugin actually, including because of this problem, and also because was trying to workaround this bug: https://github.com/dotnet/sdk/issues/27106#issuecomment-1709090812 . I was using the steps only (without using withDotNet ) inside the official mcr.microsoft.com/dotnet/sdk:6.0 image inside Kubernetes, I pulled one of my older builds now where I was still using it. It is a multibranch pipeline job. Each line (not just warnings, every single line) is duplicated, see this screenshot as an example Here I used the dotnetPublish step, but each other step behaves the same.

            zastai Tim Van Holder
            evengard Evengard
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: