Couple of output fixups and added script to be executed by Jenkins during the build. First test build.

This commit is contained in:
LexManos committed 2012-04-07 04:29:23 -07:00
1 parent 6e93f65ba1
commit ea41a93de3
5 files changed
+33 -3

No files matched your search

+2 -1
View File
@@ -43,11 +43,12 @@ def build(build_num=0):
error_level = 0
try:
os.chdir(mcp_dir)
reset_logger()
recompile(None)
reset_logger()
os.chdir(forge_dir)
except SystemExit, e:
print 'Decompile Exception: %d ' % e.code
print 'Recompile Exception: %d ' % e.code
error_level = e.code
print '=================================== Build Finished %d =================================' % error_level
@@ -606,7 +606,7 @@ public class ForgeHooks
public static final int majorVersion = 3;
public static final int minorVersion = 0;
public static final int revisionVersion = 0;
public static final int buildVersion = 5;
public static final int buildVersion = 0;
static
{
plantGrassList = new ArrayList<ProbableItem>();
+28
View File
@@ -0,0 +1,28 @@
@echo off
if "%1"=="" (
echo You must enter a build number to promote to the latest
exit /b 1
)
echo Jenkins build script started for build #%1
rmdir /S /Q ..\conf
xcopy /Y /E /I conf\* ..\conf
..\runtime\bin\python\python_mcp setup.py -skipdecompile
if %ERRORLEVEL% NEQ 0 exit /b %ERRORLEVEL%
..\runtime\bin\python\python_mcp release.py %1
if %ERRORLEVEL% NEQ 0 exit /b %ERRORLEVEL%
cd forge-*%1
if %ERRORLEVEL% NEQ 0 (
echo Release failed to produce artifacts %1
exit /b 1
)
for /f "delims=\" %%a in ("%cd%") do SET VERSION=%%~nxa
SET VERSION=%VERSION:~6%
echo Forge Version: %VERSION%
E:\MediafireUploader.exe Forge-%VERSION% minecraftforge-client-%VERSION%.zip minecraftforge-server-%VERSION%.zip minecraftforge-src-%VERSION%.zip
+1
View File
@@ -37,6 +37,7 @@ def main():
error_level = 0
try:
os.chdir(mcp_dir)
reset_logger()
reobfuscate(None, False, True, True)
reset_logger()
os.chdir(forge_dir)
+1 -1
View File
@@ -79,7 +79,7 @@ def setup_fml():
if os.path.isdir(fml_dir):
shutil.rmtree(fml_dir)
print 'Extracting Forge ModLoader: %s' % os.path.basename(fml[0])
print 'Extracting: %s' % os.path.basename(fml[0])
zf = zipfile.ZipFile(fml[0])
zf.extractall(forge_dir)