Connecting Jenkins and Codewarrior 5.9.0 Make Build

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

Connecting Jenkins and Codewarrior 5.9.0 Make Build

766 Views
Luna_Maverick
Contributor II

Hi.

I'm a developer developing with the S912XET256 MCU.

I'm trying to connect Jenkins and the Codewarrior 5.9.0 IDE to create an automated build.

I know that pressing the "make" button in the Codewarrior 5.9.0 IDE starts the build.

And I know that the resulting *.s19 and *.map files are created in the bin folder.

I'm creating a Build.bat file to connect with Jenkins.

I need to know what the *.exe file is that executes the "make" button.

I look forward to your response.

Thank you.

Tags (4)
0 Kudos
Reply
1 Reply

632 Views
Luna_Maverick
Contributor II

I'm uploading a sample Jenkins connection bat file. Please refer to it.

As of Codewarrior 5.9.0, the build program is CmdIDE.exe.

S912XET256.bat

@echo off
setlocal enabledelayedexpansion

set "CW_PATH=C:\Program Files (x86)\Freescale\CWS12v5.1\bin\CmdIDE.exe"
set "PROJECT_ROOT=%~dp0.."
set "MCP_FILE=%PROJECT_ROOT%\Project.mcp"

echo [INFO] Build Start...
echo [INFO] Executing CmdIDE with Force Build...
"%CW_PATH%" "%MCP_FILE%" /F /C /M /E /S

set "BUILD_EXIT_CODE=%errorlevel%"

echo [DEBUG] Searching for generated .s19 files...
dir /s "%PROJECT_ROOT%\*.s19"

if %BUILD_EXIT_CODE% neq 0 (
echo [ERROR] Build Failed with code %BUILD_EXIT_CODE%
exit /b %BUILD_EXIT_CODE%
)
exit /b 0

Thanks.

0 Kudos
Reply