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

Build in Jenkins fails when gcc finds errors



    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Not A Defect
    • Component/s: core
    • Environment:
      S.O.: Ubuntu Server 11.04; GCC version: 4; Compiler Warning Plugin: version 4.35; Jenkins version: 1.480.3
    • Similar Issues:


      Hello people

      I'm trying to build a C project using Jenkins. This project has many source files (over 500), so I'm doing this step by step.

      What I'm trying to achieve is to get all the errors and warnings into a file, this file is useful, because after that I need these results for Jenkins "Compiler Warning Plugin".

      To get all the information I need I'm running the following command as a "Build Step":

      gcc -Wall path/to/my/source/files.c 2>report.xml

      After that, I have other configurations and build steps, but when I execute the build, it fails because of the error messages triggered by gcc. And the rest of the steps an other configurations are never executed.

      The thing is, if I execute the same gcc command, to the same files, but outside Jenkins, I mean in a typically Linux terminal, I don't receive any message about failure. The xml file with warnings and errors output is generated and the Linux terminal finish the task without complaint

      How can I achieve the same behavior in Jenkins and not receive a build failure message? Thanks!



          acordinz Angelo Cordova created issue -
          drulli Ulli Hafner made changes -
          Field Original Value New Value
          Component/s core [ 15593 ]
          Component/s warnings [ 15513 ]
          Assignee Ulli Hafner [ drulli ]
          acordinz Angelo Cordova made changes -
          Attachment console-log.txt [ 24523 ]
          drulli Ulli Hafner made changes -
          Resolution Not A Defect [ 7 ]
          Status Open [ 1 ] Resolved [ 5 ]
          drulli Ulli Hafner made changes -
          Link This issue is duplicated by JENKINS-20205 [ JENKINS-20205 ]
          drulli Ulli Hafner made changes -
          Link This issue is duplicated by JENKINS-20205 [ JENKINS-20205 ]
          rtyler R. Tyler Croy made changes -
          Workflow JNJira [ 151538 ] JNJira + In-Review [ 193969 ]


            Unassigned Unassigned
            acordinz Angelo Cordova
            0 Vote for this issue
            2 Start watching this issue