-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixes #25: Testresult serialized into build.xml+IntegrityResultData.xml
- Loading branch information
Showing
3 changed files
with
31 additions
and
14 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
30 changes: 30 additions & 0 deletions
30
de.gebit.integrity.jenkins/src/main/java/de/gebit/integrity/IntegrityPluginInitializer.java
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,30 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2022 Rene Schneider, GEBIT Solutions GmbH and others. | ||
* All rights reserved. This program and the accompanying materials | ||
* are made available under the terms of the Eclipse Public License v1.0 | ||
* which accompanies this distribution, and is available at | ||
* http://www.eclipse.org/legal/epl-v10.html | ||
*******************************************************************************/ | ||
package de.gebit.integrity; | ||
|
||
import hudson.init.InitMilestone; | ||
import hudson.init.Initializer; | ||
import hudson.model.Run; | ||
|
||
/** | ||
* | ||
* | ||
* @author Rene Schneider - initial API and implementation | ||
* | ||
*/ | ||
public class IntegrityPluginInitializer { | ||
|
||
@Initializer(before = InitMilestone.JOB_LOADED) | ||
public static void init() { | ||
// This is important to fix issue #25 (Testresult data serialized into build.xml and integrityResultData.xml) | ||
// Due to JEP-228 (https://github.com/jenkinsci/jep/blob/master/jep/228/README.adoc) the XStream annotations | ||
// used on IntegrityCompoundTestResult do not work automatically anymore and must be manually parsed. | ||
Run.XSTREAM.processAnnotations(IntegrityCompoundTestResult.class); | ||
} | ||
|
||
} |
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