Hi, Piping to a file works, but I don't want to do that, because I want the output to appear in the normal Jenkins job console output screen. Your guess was right, in that the output doesn't seem to be fully available to the warnings plugin at the time that I called it.
I seemed to have fixed the problem by putting a sleep in between the sh invocation and warnings plugin invocation like this: node { writeFile(file: "a.c", text: ''' #include <sys/types.h> #include <stdlib.h> void func1(void) { } int main(int argc, char *argv[]) { char *a; int64_t *b; b = (int64_t *)a; printf("Hi"); printf(NULL); printf("%s %d\\n", "35"); func1(); } ''' ) sh "cc -Wall -W -Wcast-align -o output a.c" * sleep 2* step([$class: 'WarningsPublisher', canComputeNew: true, canResolveRelativePaths: false, consoleParsers: [[parserName: 'Clang (LLVM based)']], defaultEncoding: '', excludePattern: '', healthy: '', includePattern: '', messagesPattern: '', unHealthy: '']) } It is not ideal, but it seems to work for me. Is there a way to flush the console output before invoking the warnings plugin? That would be "better" than a sleep. -- Craig On Tue, Dec 22, 2015 at 9:37 AM, Ullrich Hafner <ullrich.haf...@gmail.com> wrote: Hmm, seems that the workflow plug-in does not handle the console in the > same way as for standard jobs. I’m not sure if this is a bug in the > workflow plug-in or in the workflow implementation of the warnings-plug-in. > > You can try to pipe the compiler output to a file and then parse the file. > -- 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/CAG%3DrPVerTshsPk6i%2BjKdx__d4AgDyh1igiKj9d3cg9SSykwG_w%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.