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

workflow plugin does not provide console to warnings plugin, sleep required

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reopened (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Component/s: warnings-ng-plugin
    • Labels:
    • Environment:
      workflow-plugin 1.12
      warnings plugin 4.51
      jenkins 1.641
    • Similar Issues:

      Description

      I came up with the following workflow script brooken.groovy, which
      compiles a file with clang, and then invokes the warnings plugin.

      In the console log, there are warnings, but the warnings plugin detects zero warnings.

      I modified the script slightly (fixed.groovy) by inserting a sleep statement before calling the warnings plugin. I re-ran the script and the warnings plugin detected the warnings.

      It looks like the workflow-plugin is not providing the console to the warnings plugin when it needs it? Maybe a flush is missing?

        Attachments

        1. broken.groovy.txt
          0.7 kB
          Craig Rodrigues
        2. fixed.groovy.txt
          0.7 kB
          Craig Rodrigues

          Issue Links

            Activity

            Hide
            jglick Jesse Glick added a comment -

            I would still suggest a block-scoped step, though:

            recordingIssues(tools: [javaDoc()]) {
                sh 'mvn -B -ntp -Dmaven.test.failure.ignore verify'
            }
            
            Show
            jglick Jesse Glick added a comment - I would still suggest a block-scoped step, though: recordingIssues(tools: [javaDoc()]) { sh 'mvn -B -ntp -Dmaven.test.failure.ignore verify' }
            Hide
            drulli Ulli Hafner added a comment -

            Yes, of course. I started an implementation in the last year Hacktoberfest but never managed to finish it. Too many other open issues.

            Show
            drulli Ulli Hafner added a comment - Yes, of course. I started an implementation in the last year Hacktoberfest but never managed to finish it. Too many other open issues.
            Hide
            timja Tim Jacomb added a comment -

            Ulli Hafner the work around may not be needed anymore after workflow-job 2.41? see https://github.com/jenkinsci/workflow-job-plugin/pull/184

            Show
            timja Tim Jacomb added a comment - Ulli Hafner the work around may not be needed anymore after workflow-job 2.41? see https://github.com/jenkinsci/workflow-job-plugin/pull/184
            Hide
            drulli Ulli Hafner added a comment -

            Ah thanks! Yes, that means I can remove my 5 sec sleep

            Show
            drulli Ulli Hafner added a comment - Ah thanks! Yes, that means I can remove my 5 sec sleep
            Hide
            drulli Ulli Hafner added a comment -

            I'm reopening so that I do not forget to remove the workaround in the warnings plugin.

            Show
            drulli Ulli Hafner added a comment - I'm reopening so that I do not forget to remove the workaround in the warnings plugin.

              People

              Assignee:
              drulli Ulli Hafner
              Reporter:
              rodrigc Craig Rodrigues
              Votes:
              5 Vote for this issue
              Watchers:
              10 Start watching this issue

                Dates

                Created:
                Updated: