Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't define map file path #26

Open
buep opened this issue Mar 30, 2017 · 1 comment
Open

Can't define map file path #26

buep opened this issue Mar 30, 2017 · 1 comment
Milestone

Comments

@buep
Copy link
Contributor

buep commented Mar 30, 2017

Originally filed as Jenkins CI Jira issue https://issues.jenkins-ci.org/browse/JENKINS-32424
We only use GHI now.

Christian Opitz wrote:


No matter in which format I add the file name, I either get an error message or the file is not found.
Jenkins ver. 1.625.3 on Windows 7

Examples:

No files found
Error message: Filematcher found no files using pattern X in folder Y
Not found patterns (including the quotation marks):
"_bin*.map"
"C:\Projekte\myproject\ _bin*.map"
"_bin\XXX-XXX100_000300_R1931_20160113_0854.map"

Exception
_bin\XXX-XXX100_000300_R1931_20160113_0854.map
_bin\ *.map
*.map

What is interesting, is that the error message says that there was an exception for input string "g" (marked in bold below) although, there is no "g" in the input string...

Memory Map Plugin version 2.1.2 (cfc34)
ERROR: Build step failed with exception
java.lang.NumberFormatException: For input string: "g"
at java.lang.NumberFormatException.forInputString(Unknown Source)
at java.lang.Long.parseLong(Unknown Source)
at net.praqma.jenkins.memorymap.util.HexUtils$HexifiableString.getLongValue(HexUtils.java:81)
at net.praqma.jenkins.memorymap.parser.gcc.GccMemoryMapParser$MemoryMapMemItemComparator.compare(GccMemoryMapParser.java:124)
at net.praqma.jenkins.memorymap.parser.gcc.GccMemoryMapParser$MemoryMapMemItemComparator.compare(GccMemoryMapParser.java:120)
at java.util.TimSort.binarySort(Unknown Source)
at java.util.TimSort.sort(Unknown Source)
at java.util.TimSort.sort(Unknown Source)
at java.util.Arrays.sort(Unknown Source)
at java.util.Collections.sort(Unknown Source)
at net.praqma.jenkins.memorymap.parser.gcc.GccMemoryMapParser.guessLengthOfSections(GccMemoryMapParser.java:139)
at net.praqma.jenkins.memorymap.parser.gcc.GccMemoryMapParser.parseMapFile(GccMemoryMapParser.java:168)
at net.praqma.jenkins.memorymap.parser.MemoryMapMapParserDelegate.invoke(MemoryMapMapParserDelegate.java:61)
at net.praqma.jenkins.memorymap.parser.MemoryMapMapParserDelegate.invoke(MemoryMapMapParserDelegate.java:39)
at hudson.FilePath.act(FilePath.java:991)
at hudson.FilePath.act(FilePath.java:969)
at net.praqma.jenkins.memorymap.MemoryMapRecorder.perform(MemoryMapRecorder.java:161)
at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:785)
at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:726)
at hudson.model.Build$BuildExecution.post2(Build.java:185)
at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:671)
at hudson.model.Run.execute(Run.java:1766)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:408)
Build step 'Memory Map Publisher' marked build as failure
@buep
Copy link
Contributor Author

buep commented Mar 30, 2017

The conclusions on JENKINS-32424 narrows down to there should be a better error message when file can't be parsed.

Further the that reason for not being able to parse them is because of the Tricore-Gcc compiler output in another format that the usual GCC compiler.

@buep buep modified the milestone: Backlog Mar 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant