| 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. Log file is in attachement. 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. |