-
Bug
-
Resolution: Fixed
-
Major
-
Warnings Next Generation Plugin 5.1.0
Jenkins 2.176.1
Hello
When using the IAR parser with a pattern to parse a log file instead of the console, the parser founds 0 warnings whereas there is plenty.
Using the same parser on console founds the warnings but is useless to me since it mixes warnings from all my parallels tasks in my Jenkins pipeline.
IAR Log file is in attachement.
Part of build log:
10:32:46 Skipping issues blame since Git is the only supported SCM up to now. 10:32:46 [Debug/3Nm] Searching for all files in 'D:\Jenkins_SIMU\workspace\SIM145_SIM145_BuildMulti_trunk' that match the pattern 'Debug_3Nm_iar_build.log' 10:32:46 [Debug/3Nm] -> found 1 file 10:32:46 [Debug/3Nm] Successfully parsed file D:\Jenkins_SIMU\workspace\SIM145_SIM145_BuildMulti_trunk\Debug_3Nm_iar_build.log 10:32:46 [Debug/3Nm] -> found 0 issues (skipped 0 duplicates) 10:32:46 [Debug/3Nm] Attaching ResultAction with ID 'Debug_3Nm' to run 'SIM145/SIM145_BuildMulti/trunk #300'.
Part of pipeline code:
node ('IAR_8_32_ARM') { try { deleteDir() unstash name: 'SOURCES' bat label: "IAR build", script: """ set PATH=%PATH%;%IAR_8_32_ARM%\\common\\bin set /a NB_PROCESS=%NUMBER_OF_PROCESSORS%*2 powershell "& '%IAR_8_32_ARM%\\common\\bin\\IarBuild.exe' CODE\\IDE\\IAR_ARM\\SIM145.ewp -build '${axisIarConfigurationValue}' -log info -parallel %NB_PROCESS% -varfile 'CODE\\IDE\\IAR_ARM\\SIM145_${axisMotorTorqueValue}.custom_argvars' *>&1 | Tee-Object -FilePath '${axisIarConfigurationValue}_${axisMotorTorqueValue}_iar_build.log'" """ archiveArtifacts allowEmptyArchive: false, artifacts: "${axisIarConfigurationValue}_${axisMotorTorqueValue}_iar_build.log, CODE/IDE/IAR_ARM/${axisIarConfigurationValue}/Exe/**, CODE/IDE/IAR_ARM/${axisIarConfigurationValue}/List/**, CODE/IDE/IAR_ARM/*", caseSensitive: true, defaultExcludes: true, fingerprint: false, onlyIfSuccessful: false } catch(exp) { throw exp } finally { recordIssues enabledForFailure: true, tools: [iar(id: "${axisIarConfigurationValue}_${axisMotorTorqueValue}", name: "${axisIarConfigurationValue}/${axisMotorTorqueValue}", pattern: "${axisIarConfigurationValue}_${axisMotorTorqueValue}_iar_build.log", reportEncoding: "CP1250")], sourceCodeEncoding: "CP1250" deleteDir() } }
Note: I use PowerShell to "tee" the IAR output to both console and the log file. The tee step doesn't work for me. Seems related to PR #62.