Skip to content

Commit

Permalink
SET-155 Create Windows EAP test job on CCI
Browse files Browse the repository at this point in the history
  • Loading branch information
RanabirChakraborty committed Aug 30, 2023
1 parent 0b22016 commit d6f8e84
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions eap-job/eap-cci.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
@echo off

echo Set the environment variables for Maven and Java
set "PATH=%M2_HOME%\bin;%JAVA_HOME%\bin;%PATH%"

echo Expand all .zip files in the current directory
for %%F in (*.zip) do (
powershell -Command "Expand-Archive -Path '%%~F' -DestinationPath 'eap' -Force"
)

REM Check if EAP_VERSION is set
IF "%EAP_VERSION%"=="" (
echo EAP_VERSION is not set!
exit /b 1
)

REM Where JBoss EAP stores
cd eap\eap-sources

REM Set the testsuite command
set "COMMAND=mvn clean install -Djboss.dist=%WORKSPACE%\eap\jboss-eap-%EAP_VERSION% -DallTests -D%ip%"

echo Running testsuite command: %COMMAND%

echo Executing the testsuite
%COMMAND%

REM Check if the build was successful or not
IF %ERRORLEVEL% NEQ 0 (
echo Build failed!
exit /b %ERRORLEVEL%
)

echo Build successful!

0 comments on commit d6f8e84

Please sign in to comment.