-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SET-155 Create Windows EAP test job on CCI
- Loading branch information
1 parent
0b22016
commit d6f8e84
Showing
1 changed file
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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! |