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

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

    XMLWordPrintable

Details

    • Bug
    • Status: Fixed but Unreleased (View Workflow)
    • Major
    • Resolution: Fixed
    • warnings-ng-plugin
    • workflow-plugin 1.12
      warnings plugin 4.51
      jenkins 1.641

    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

        Issue Links

          Activity

            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'
            }
            
            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' }
            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.

            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.
            timja Tim Jacomb added a comment -

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

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

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

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

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

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

            People

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

              Dates

                Created:
                Updated:
                Resolved: