Commit e66ea0a4 authored by Maxime Lefrançois's avatar Maxime Lefrançois
Browse files

always generate html report

parent a3df40df
Loading
Loading
Loading
Loading
+6 −6
Original line number Original line Diff line number Diff line
@@ -108,9 +108,9 @@ public class SiteManager extends SAREFErrorLogger {
	 * Prepare the site folder and clone the saref-portal-static project repository.
	 * Prepare the site folder and clone the saref-portal-static project repository.
	 */
	 */
	public void prepareSite() throws SAREFPipelineException {
	public void prepareSite() throws SAREFPipelineException {
		if (pipeline.ignoreSite) {
//		if (pipeline.ignoreSite) {
			return;
//			return;
		}
//		}
		try (Git git = Git.cloneRepository().setURI(SAREF.SAREF_PORTAL_STATIC_GIT).setDirectory(siteDir).call()) {
		try (Git git = Git.cloneRepository().setURI(SAREF.SAREF_PORTAL_STATIC_GIT).setDirectory(siteDir).call()) {
		} catch (Exception ex) {
		} catch (Exception ex) {
			try (Git git = Git.open(siteDir)) {
			try (Git git = Git.open(siteDir)) {
@@ -124,9 +124,9 @@ public class SiteManager extends SAREFErrorLogger {
	}
	}


	public void writeReport(StringWriter sw) throws IOException {
	public void writeReport(StringWriter sw) throws IOException {
		if (pipeline.ignoreSite) {
//		if (pipeline.ignoreSite) {
			return;
//			return;
		}
//		}
		try (IndentedWriter writer = new IndentedWriter(new FileOutputStream(reportFileHTML));) {
		try (IndentedWriter writer = new IndentedWriter(new FileOutputStream(reportFileHTML));) {
			boolean debugTemplate = pipeline.mode == Mode.DEVELOP;
			boolean debugTemplate = pipeline.mode == Mode.DEVELOP;
			Context context = ContextUtils.build(writer).setBase(SAREF.BASE).setDebugTemplate(debugTemplate)
			Context context = ContextUtils.build(writer).setBase(SAREF.BASE).setDebugTemplate(debugTemplate)