This looks like an exception from one of the steps. Is there a stacktrace? If there is no result visible then this is due to an exception.
> Am 30.10.2018 um 12:16 schrieb dean warren <dean.warren...@gmail.com>: > > And also noted this for the same some, following emailing results > > 10:58:11 Sending e-mails to: .... > [Pipeline] } > [Pipeline] // node > [Pipeline] } > [Pipeline] // timestamps > [Pipeline] End of Pipeline > java.nio.charset.MalformedInputException: Input length = 1 > > > On Tue, Oct 30, 2018 at 11:15 AM dean warren <dean.warren...@gmail.com > <mailto:dean.warren...@gmail.com>> wrote: > > Ahh... I am clearly a doofus 's' ! > Sorry, you know what its like, doing one thing with left hand, something else > with other... and miss things. > > So now I see the following > 10:58:10 [CheckStyle] Searching for all files in > '/home/user/workspace/TG.integrate_jenkins_ci-TKKXRODLMWWUDKMVKENHFQYQ7E2ZP5QAC72HYNHV6PXXEX75DW2Q' > that match the pattern '**/target/checkstyle-results.xml' > 10:58:10 [CheckStyle] -> found 1 file > 10:58:10 [CheckStyle] Successfully parsed file > /home/user/workspace/TG.integrate_jenkins_ci-TKKXRODLMWWUDKMVKENHFQYQ7E2ZP5QAC72HYNHV6PXXEX75DW2Q/target/checkstyle-results.xml > 10:58:10 [CheckStyle] -> found 2983 issues (skipped 0 duplicates) > > However the build now fails,I assume because of all of the checkstyle issues > (all 2983 of them!) - this is fine. > > But the checkstyle icon has dissapeared for this build. > e.g. a good build, but not finding the checkstyle file, so no build failure > and the checkstyle icons appear but with no warnings/errors. > <image.png> > But on the failed build the icons have dissappeared. > <image.png> > How do I view the checkstyle warnings/errors in Jenksin? > > On Tue, Oct 30, 2018 at 10:57 AM Ullrich Hafner <ullrich.haf...@gmail.com > <mailto:ullrich.haf...@gmail.com>> wrote: > You should see an info message in the snippet generator. The default (if left > empty) is '**/checkstyle-result.xml‘. Or you can view the JavaDoc > documentation (or documentation in > https://github.com/jenkinsci/warnings-ng-plugin/blob/master/doc/Documentation.md > > <https://github.com/jenkinsci/warnings-ng-plugin/blob/master/doc/Documentation.md>). > > Is your file called checkstyle-result.xml or checkstyle-result*s*.xml? > >> Am 30.10.2018 um 11:48 schrieb dean warren <dean.warren...@gmail.com >> <mailto:dean.warren...@gmail.com>>: >> >> Awesome, that works! Thanks guys. >> >> One last question... :) Where can I find info for the 'pattern' part of the >> line >> e.g. >> def checkstyle = scanForIssues tool: [$class: 'CheckStyle'], pattern: >> '**/target/checkstyle-result.xml' >> <https://wiki.jenkins.io/display/JENKINS/checkstyle-result.xml'> >> >> As my resutls are created in the dersired place (I can see them), but >> scanForIssues isn't finding the checkstyle-results.xml (I think) >> i.e. >> [CheckStyle] [ERROR] No files found for pattern >> '**/target/checkstyle-result.xml'. Configuration error? >> >> >> On Tue, Oct 30, 2018 at 9:48 AM deanwarrenuk <dean.warren...@gmail.com >> <mailto:dean.warren...@gmail.com>> wrote: >> Ok found it here >> https://updates.jenkins.io/experimental/latest/ >> <https://updates.jenkins.io/experimental/latest/> >> >> On Monday, 29 October 2018 16:28:31 UTC, Ullrich Hafner wrote: >> You need to point your update center to the experimental update center url, >> see >> https://jenkins.io/doc/developer/publishing/releasing-experimental-updates/ >> <https://jenkins.io/doc/developer/publishing/releasing-experimental-updates/> >> >> Von meinem iPad gesendet >> >> Am 29.10.2018 um 15:43 schrieb dean warren <dean.wa...@gmail.com <>>: >> >>> Thanks @sagar for your reply. >>> >>> But the link https://updates.jenkins.io/download/plugins/warnings/ >>> <https://updates.jenkins.io/download/plugins/warnings/> does not contain >>> version 5.0. Perhaps because this is a beta? >>> >>> So do I have to build / repackage it, of is there another link that will >>> give me the .hpi file? >>> >>> On Mon, Oct 29, 2018 at 2:22 PM sagar utekar <sagarut...@gmail.com <>> >>> wrote: >>> from here you can download hpi file for warnings plugin >>> https://updates.jenkins.io/download/plugins/warnings/ >>> <https://updates.jenkins.io/download/plugins/warnings/> >>> >>> and add it using upload section of manage plugin -> advanced section >>> >>> On Mon, Oct 29, 2018 at 7:39 PM def <dean.wa...@gmail.com <>> wrote: >>> OK, from here: >>> https://github.com/jenkinsci/warnings-plugin/tree/5.0 >>> <https://github.com/jenkinsci/warnings-plugin/tree/5.0> >>> >>> But Jnekins requires a .hpi file. >>> Do I have to build this, or package it somehow? >>> >>> On Monday, 29 October 2018 14:02:45 UTC, def wrote: >>> Thanks @ulli for your reply. >>> >>> 'Did you install the 5.0 beta version of the plugin? This step is not >>> available in the 4.x version.' >>> Ahh... :) No. Where do I get that from and how to install in Jenkins? >>> >>> On Sat, Oct 27, 2018 at 6:07 PM Ulli Hafner <ullrich...@gmail.com <>> wrote: >>> >>> >>> Von meinem iPad gesendet >>> >>> Am 26.10.2018 um 09:50 schrieb dean warren <dean.wa...@gmail.com <>>: >>> >>>> I am trying to get the Warnings plugin collecting CheckStyle results >>>> within a pipeline. >>>> I believe I am using all the latest versions of pipeline related modules, >>>> and the warnings modules. >>>> >>>> A simplified version of my Jenkinsfile is something like: >>>> >>>> timestamps { >>>> node ('name') { >>>> try >>>> { >>>> stage ('Checkout') { >>>> checkout scm >>>> } >>>> stage ('Build & Test') { >>>> sh 'bash -x test.sh' >>>> } >>>> stage ('CheckStyle') { >>>> sh 'java -jar >>>> /home/user/checkstyle/checkstyle-6.5-all.jar -c /home/user/checkstyle.xml >>>> -f xml -c target/checkstyle-results.xml src' >>>> // Doesn't work >>>> // step([$class: 'CheckStylePublisher', >>>> // canRunOnFailed: true, >>>> // defaultEncoding: '', >>>> // healthy: '100', >>>> // pattern: '**/target/checkstyle-result.xml', >>>> // unHealthy: '90', >>>> // useStableBuildAsReference: true >>>> // ]) >>> >>> This publisher requires the CheckStyle plugin. >>> >>>> // Doesn't work >>>> // step([$class: 'WarningsPublisher', consoleParsers: >>>> [[parserName: 'CheckStyle']]]) >>>> >>> >>> The warnings publisher from the 4.x version does not support CheckStyle yet. >>> >>>> // Doesn't work >>>> def checkstyle = scanForIssues tool: [$class: >>>> 'CheckStyle'], pattern: '**/target/checkstyle-result.xml' >>>> publishIssues issues:[checkstyle] >>>> } >>>> } >>>> catch (caughtErr) >>>> { >>>> } >>>> finally >>>> { >>>> } >>>> } >>>> } >>>> >>> >>> Did you install the 5.0 beta version of the plugin? This step is not >>> available in the 4.x version. >>> >>>> Where I have tried three different methods to collect the checkstype >>>> results, none of which work (I have left two of them commented out for >>>> reference - but beleive these are methods for the legacy checkstyle >>>> plugin, not the newly integrated warnigns plugin?). >>>> >>>> I believe the last method using scanForIssues is the correct method as per >>>> here: >>>> https://github.com/jenkinsci/warnings-plugin/blob/master/Jenkinsfile.local >>>> <https://github.com/jenkinsci/warnings-plugin/blob/master/Jenkinsfile.local> >>>> >>>> However on build, I see the checkstyle results being generated, but get >>>> the following error message >>>> java.lang.NoSuchMethodError: No such DSL method 'scanForIssues' found >>>> among steps >>>> >>>> Any ideas? >>>> Thanks in advance! >>>> >>>> >>>> -- >>>> You received this message because you are subscribed to the Google Groups >>>> "Jenkins Users" group. >>>> To unsubscribe from this group and stop receiving emails from it, send an >>>> email to jenkinsci-use...@googlegroups.com <>. >>>> To view this discussion on the web visit >>>> https://groups.google.com/d/msgid/jenkinsci-users/00750112-2e37-4213-91b3-01c87686433c%40googlegroups.com >>>> >>>> <https://groups.google.com/d/msgid/jenkinsci-users/00750112-2e37-4213-91b3-01c87686433c%40googlegroups.com?utm_medium=email&utm_source=footer>. >>>> For more options, visit https://groups.google.com/d/optout >>>> <https://groups.google.com/d/optout>. >>> >>> >>> -- >>> You received this message because you are subscribed to the Google Groups >>> "Jenkins Users" group. >>> To unsubscribe from this group and stop receiving emails from it, send an >>> email to jenkinsci-use...@googlegroups.com <>. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/jenkinsci-users/71651BEB-5A46-4E4C-B8E5-C8C688B3D162%40gmail.com >>> >>> <https://groups.google.com/d/msgid/jenkinsci-users/71651BEB-5A46-4E4C-B8E5-C8C688B3D162%40gmail.com?utm_medium=email&utm_source=footer>. >>> For more options, visit https://groups.google.com/d/optout >>> <https://groups.google.com/d/optout>. >>> >>> -- >>> You received this message because you are subscribed to the Google Groups >>> "Jenkins Users" group. >>> To unsubscribe from this group and stop receiving emails from it, send an >>> email to jenkinsci-use...@googlegroups.com <>. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/jenkinsci-users/1d291cec-9b90-44bb-9a82-cd47b0db906b%40googlegroups.com >>> >>> <https://groups.google.com/d/msgid/jenkinsci-users/1d291cec-9b90-44bb-9a82-cd47b0db906b%40googlegroups.com?utm_medium=email&utm_source=footer>. >>> For more options, visit https://groups.google.com/d/optout >>> <https://groups.google.com/d/optout>. >>> >>> -- >>> You received this message because you are subscribed to the Google Groups >>> "Jenkins Users" group. >>> To unsubscribe from this group and stop receiving emails from it, send an >>> email to jenkinsci-use...@googlegroups.com <>. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/jenkinsci-users/CAH_GKWuSX%2BiQjqPwwb0jM8nc6oLnCW37HaWM1RffCA_bcNsumQ%40mail.gmail.com >>> >>> <https://groups.google.com/d/msgid/jenkinsci-users/CAH_GKWuSX%2BiQjqPwwb0jM8nc6oLnCW37HaWM1RffCA_bcNsumQ%40mail.gmail.com?utm_medium=email&utm_source=footer>. >>> For more options, visit https://groups.google.com/d/optout >>> <https://groups.google.com/d/optout>. >>> >>> -- >>> You received this message because you are subscribed to the Google Groups >>> "Jenkins Users" group. >>> To unsubscribe from this group and stop receiving emails from it, send an >>> email to jenkinsci-use...@googlegroups.com <>. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/jenkinsci-users/CAKYjVYzcArn7JE6mCTVO0-SKXWrbUKtY82pxkXa7PGJ%2BFp1K0Q%40mail.gmail.com >>> >>> <https://groups.google.com/d/msgid/jenkinsci-users/CAKYjVYzcArn7JE6mCTVO0-SKXWrbUKtY82pxkXa7PGJ%2BFp1K0Q%40mail.gmail.com?utm_medium=email&utm_source=footer>. >>> For more options, visit https://groups.google.com/d/optout >>> <https://groups.google.com/d/optout>. >> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Jenkins Users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to jenkinsci-users+unsubscr...@googlegroups.com >> <mailto:jenkinsci-users+unsubscr...@googlegroups.com>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/jenkinsci-users/546f6fb6-2578-4e03-92a2-c2db865415ab%40googlegroups.com >> >> <https://groups.google.com/d/msgid/jenkinsci-users/546f6fb6-2578-4e03-92a2-c2db865415ab%40googlegroups.com?utm_medium=email&utm_source=footer>. >> For more options, visit https://groups.google.com/d/optout >> <https://groups.google.com/d/optout>. >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Jenkins Users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to jenkinsci-users+unsubscr...@googlegroups.com >> <mailto:jenkinsci-users+unsubscr...@googlegroups.com>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/jenkinsci-users/CAKYjVYy8XzcznAug_SbJCFCctPkM1XhO-MuYww9%3D90cLUeDO-w%40mail.gmail.com >> >> <https://groups.google.com/d/msgid/jenkinsci-users/CAKYjVYy8XzcznAug_SbJCFCctPkM1XhO-MuYww9%3D90cLUeDO-w%40mail.gmail.com?utm_medium=email&utm_source=footer>. >> For more options, visit https://groups.google.com/d/optout >> <https://groups.google.com/d/optout>. > > > -- > You received this message because you are subscribed to the Google Groups > "Jenkins Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to jenkinsci-users+unsubscr...@googlegroups.com > <mailto:jenkinsci-users+unsubscr...@googlegroups.com>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jenkinsci-users/3FB143F1-C598-4C62-A175-A8D54D836024%40gmail.com > > <https://groups.google.com/d/msgid/jenkinsci-users/3FB143F1-C598-4C62-A175-A8D54D836024%40gmail.com?utm_medium=email&utm_source=footer>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. > > -- > You received this message because you are subscribed to the Google Groups > "Jenkins Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to jenkinsci-users+unsubscr...@googlegroups.com > <mailto:jenkinsci-users+unsubscr...@googlegroups.com>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jenkinsci-users/CAKYjVYxk3Ca2ZqgxaUk1_oXAzkutsemvrPo2%2B2PgrQ_ocB6Log%40mail.gmail.com > > <https://groups.google.com/d/msgid/jenkinsci-users/CAKYjVYxk3Ca2ZqgxaUk1_oXAzkutsemvrPo2%2B2PgrQ_ocB6Log%40mail.gmail.com?utm_medium=email&utm_source=footer>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/6CF96490-9536-4F70-B078-B61AEFD07592%40gmail.com. For more options, visit https://groups.google.com/d/optout.
signature.asc
Description: Message signed with OpenPGP