IAR (EWARM) failure to build on Jenkins

71 views
Skip to first unread message

Faisal Tariq

unread,
Jul 18, 2022, 6:42:50 PM7/18/22
to Jenkins Users
Hello,

I would like to know who all are using IAR EWARM to build on Jenkins without any issues?  Please read on to see my issue.

I am running an IAR IDE build script to build an example file. When I run it locally through a Windows “cmd” screen, it evokes IAR IDE and does a build successfully. However, when I run the same script through Jenkins I get an error message, as follows:

The unknown argument variable “${CMSIS_PACK_PATH_Maxim#MAX32670#1.0.3}$” was encountered while loading the project “C:\IAR_Examples\MAX32670_Example_TEST\DMA\IAR\DMA.ewp”.

The above path is where the pack gets installed. Has anyone encountered anything similar where the script runs fine in Windows “cmd” screen, but fails when evoked through Jenkins?

Also, this may not be related, but the complete error message was as follows with the SLF4J: in both cases (i.e. in Windows Cmd screen and Jenkins). However the one that I ran through cmd did not complain about the $(CMSIS_PACK_PATH… and built successfully.

SLF4J: Failed to load class “org.slf4j.impl.StaticLoggerBinder”.
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See SLF4J Error Codes for further details.
The unknown argument variable “${CMSIS_PACK_PATH_Maxim#MAX32670#1.0.3}$” was encountered while loading the project “C:\IAR_Examples\MAX32670_Example_TEST\DMA\IAR\DMA.ewp”.

Thank you all in advance. Please let me know if you need any additional information.

Alex Earl

unread,
Jul 18, 2022, 6:55:49 PM7/18/22
to Jenkins User Mailing List
Does the command line you are using in Jenkins match exactly to what you are running in Jenkins? Are you using a Jenkinsfile? The argument looks more like a bash variable specification than one that would run in cmd.exe.

--
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-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/0f65d2f1-aea9-40dc-9a2f-8c92d6e8a9a6n%40googlegroups.com.


--

Faisal Tariq

unread,
Jul 18, 2022, 7:37:51 PM7/18/22
to Jenkins Users
Hi Slide,

Yes, the command line that I am using matches "exactly" in both the cmd and Jenkins (I am sure of that).  What is being called "argument" is present in the project (*.ewp) file which the IAR build environment knows what to replace it with i.e. C:\...\<path-to-libraries>.  However when run through Jenkins, it fails to recognize this and does not know what to replace it with and displays the error?

Thanks
Faisal

Alex Earl

unread,
Jul 18, 2022, 10:34:51 PM7/18/22
to Jenkins User Mailing List
In the command window (cmd.exe) that you are running the command from, can you run the "set" command to get a list of env variables and do the same thing as part of your Jenkins run and see if there are any environment variables are missing from the Jenkins run? Generally, Jenkins will not have all of the environment variables that you might have in your user account. Anothing thing to try would be (if you are not already) run the command as the same user the Jenkins agent (or controller) is running as and see if you see the same behavior.



--

Faisal Tariq

unread,
Jul 19, 2022, 11:01:51 AM7/19/22
to Jenkins Users

Hi Slide, 
Good suggestion on checking the environment variable.

I am not sure how to do what you stated above:    "Anothing thing to try would be (if you are not already) run the command as the same user the Jenkins agent (or controller) is running as and see if you see the same behavior".  Could you kindly elaborate .

Thanks

Faisal

Alex Earl

unread,
Jul 19, 2022, 11:06:19 AM7/19/22
to Jenkins User Mailing List
Is it a Jenkins agent that you are running this on, or the controller? If an agent, are you running as a Windows service, or using something like SSH? If the controller, what user is the controller running as? You need to figure out what user account the command is being run as. If it is different from the user you are currently running the command as on cmd.exe, then you need to try as the user that Jenkins is using to run the command. There could be some different in environment between the two which could be causing the problem.



--
Reply all
Reply to author
Forward
0 new messages