Ubuntu CLI Project Build

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Ubuntu CLI Project Build

Jump to solution
1,058 Views
MichaelBMiner
Contributor IV

Hello All,

As part of my jenkins build I am trying to build my project using a KEA128. I have successfully installed the NXP S32DS ARM 2018.R1 on Ubuntu 20.04, I can import clean and build my project using the IDE.

My jenkins build copies my gitlab repo into 

/var/lib/jenkins/workspace/test_ubuntu_build

 I installed the NXP IDE in the folder

/home/NXP/S32DS_ARM_v2018.R1/eclipse

After looking at a few posts here on the forums I put together this CLI

/home/NXP/S32DS_ARM_v2018.R1/eclipse -nosplash --laucher.suppressErrors -import /var/lib/jenkins/workspace/test_ubuntu_build -application org.eclipse.cdt.managebuilder.core.headlessbuild -no-indexer -build all

When doing this I get the error that the folder /test_ubuntu_build/Debug does not exist. This is true. However when I run build from the IDE the Debug folder is created, when I run this from the command line it is not. Am I missing a step?

0 Kudos
Reply
1 Solution
1,042 Views
MichaelBMiner
Contributor IV

I figured this out and I will post it for others here. My working build command is

/home/NXP/S32DS_ARM_v2018.R1/eclipse/s32ds --launcher.suppressErrors -nosplash -application org.eclipse.cdt.managedbuilder.core.headlessbuild -data ~/Documents/TempWorkSpace -import $PWD/$PRODUCT_FOLDER/ -cleanBuild all

 

To make my import work every time I create a TempWorkSpace. At the start of each Jenkins build I delete the TempWorkSpace. 

View solution in original post

0 Kudos
Reply
1 Reply
1,043 Views
MichaelBMiner
Contributor IV

I figured this out and I will post it for others here. My working build command is

/home/NXP/S32DS_ARM_v2018.R1/eclipse/s32ds --launcher.suppressErrors -nosplash -application org.eclipse.cdt.managedbuilder.core.headlessbuild -data ~/Documents/TempWorkSpace -import $PWD/$PRODUCT_FOLDER/ -cleanBuild all

 

To make my import work every time I create a TempWorkSpace. At the start of each Jenkins build I delete the TempWorkSpace. 

0 Kudos
Reply