Make changelog generation non-fatal untill we get jenkins issue figured out.

This commit is contained in:
LexManos 2013-06-02 16:26:06 -07:00
parent cc520e40ce
commit 15d158161e

View file

@ -2,6 +2,7 @@ import os, os.path, sys, glob
import shutil, fnmatch import shutil, fnmatch
import logging, zipfile, re import logging, zipfile, re
from optparse import OptionParser from optparse import OptionParser
from urllib2 import HTTPError
forge_dir = os.path.dirname(os.path.abspath(__file__)) forge_dir = os.path.dirname(os.path.abspath(__file__))
from forge import reset_logger, load_version, zip_folder, zip_create, inject_version, build_forge_dev from forge import reset_logger, load_version, zip_folder, zip_create, inject_version, build_forge_dev
@ -99,7 +100,11 @@ def main():
# options.skip_changelog = True #Disable till jenkins fixes its shit # options.skip_changelog = True #Disable till jenkins fixes its shit
if not options.skip_changelog: if not options.skip_changelog:
changelog_file = 'forge-%s/minecraftforge-changelog-%s.txt' % (version_str, version_str) changelog_file = 'forge-%s/minecraftforge-changelog-%s.txt' % (version_str, version_str)
try:
make_changelog("http://jenkins.minecraftforge.net/job/minecraftforge/", build_num, changelog_file, version_str) make_changelog("http://jenkins.minecraftforge.net/job/minecraftforge/", build_num, changelog_file, version_str)
except HTTPError, e:
print 'Changelog failed to generate: %s' % e
options.skip_changelog = True
version_file = 'forgeversion.properties' version_file = 'forgeversion.properties'
if os.path.exists(version_file): if os.path.exists(version_file):