Skip to content

Commit

Permalink
Merge pull request #2 from PTC-ALM/master
Browse files Browse the repository at this point in the history
Merge from PTC ALM Master
  • Loading branch information
abhijeetmoon committed Dec 15, 2020
2 parents 9459144 + f8920cb commit 77ff6de
Show file tree
Hide file tree
Showing 11 changed files with 22 additions and 11 deletions.
Binary file modified images/Jenkins_Checkpoint_Label.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/Jenkins_Integrity_Server_Configuration_Option.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/Jenkins_Integrity_Settings_2_1.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/Jenkins_Integrity_Settings_Advanced_2_2.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/Jenkins_Polling_Log.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/Jenkins_Post_Build_Action_Integrity_CM_Checkpoint.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/Jenkins_SCM_Integrity.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/Jenkins_Successful_Build_Checkpoint.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/main/java/hudson/scm/IntegritySCM.java
Expand Up @@ -455,7 +455,7 @@ private void checkoutUsingLocalClient(Run<?, ?> run,
listener.getLogger().println(eh.getMessage());
LOGGER.fine(eh.getCommand() + RETURNED_EXIT_CODE + eh.getExitCode());
listener.getLogger().println(eh.getCommand() + RETURNED_EXIT_CODE + eh.getExitCode());
throw new AbortException("[Local Client] Caught Integrity APIException!");
throw new AbortException("[Local Client] Caught Windchil RV&S APIException!");
} catch (Exception e) {
e.printStackTrace(listener.getLogger());
LOGGER.log(Level.SEVERE, "[Local Client] Exception occured during checkout!", e);
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/hudson/scm/api/session/APISession.java
Expand Up @@ -57,7 +57,7 @@ public static synchronized ISession create(IntegrityConfigurable settings)
// Attempt to open a connection to the Integrity Server
try {
LOGGER.fine(
"Creating Integrity API Session for :" +
"Creating Windchill RV&S API Session for :" +
settings.getUserName() +
settings.getSecure());
return new APISession(settings.getIpHostName(), settings.getIpPort(),
Expand Down Expand Up @@ -85,7 +85,7 @@ public static synchronized ISession createLocalIntegrationPoint(
{
try {
LOGGER.fine(
"Creating Integrity API Session for :" +
"Creating Windchill RV&S API Session for :" +
settings.getUserName() +
settings.getSecure());
return new APISession(settings.getIpHostName(), settings.getIpPort(),
Expand Down
Expand Up @@ -10,6 +10,8 @@
import java.util.Set;

import org.apache.commons.digester3.Digester;
import org.apache.commons.io.FileUtils;
import org.apache.commons.io.LineIterator;
import org.xml.sax.SAXException;

import hudson.model.Run;
Expand All @@ -32,17 +34,26 @@ public IntegrityLcChangeLogParser(String url)
}

@Override
public IntegrityLcChangeSetList parse(@SuppressWarnings("rawtypes") Run build,
RepositoryBrowser<?> browser, File changelogFile)
throws IOException, SAXException
{
List<IntegrityLcChangeSet> changeSetList = parseXML(build, browser, integrityUrl, changelogFile);
return new IntegrityLcChangeSetList(build, browser, integrityUrl, changeSetList);
public IntegrityLcChangeSetList parse(@SuppressWarnings("rawtypes") Run build, RepositoryBrowser<?> browser,
File changelogFile) throws IOException, SAXException {
try {
List<IntegrityLcChangeSet> changeSetList = parseXML(build, browser, integrityUrl, changelogFile);
return new IntegrityLcChangeSetList(build, browser, integrityUrl, changeSetList);
} catch (SAXException e) {
LineIterator lineIterator = null;
try {
lineIterator = FileUtils.lineIterator(changelogFile, "UTF-8");
return new IntegrityLcChangeSetList(build, browser, integrityUrl, parse(lineIterator));
} finally {
LineIterator.closeQuietly(lineIterator);
}

}
}

private List<IntegrityLcChangeSet> parseXML(@SuppressWarnings("rawtypes") Run build,
RepositoryBrowser<?> browser, String integrityUrl, File changelogFile)
throws IOException
throws IOException, SAXException
{
List<IntegrityLcChangeSet> changeSetList = new ArrayList<IntegrityLcChangeSet>();
Digester digester = new Digester();
Expand All @@ -69,7 +80,7 @@ private List<IntegrityLcChangeSet> parseXML(@SuppressWarnings("rawtypes") Run bu
throw new IOException("Failed to parse " + changelogFile, e);
} catch (SAXException e)
{
throw new IOException("Failed to parse " + changelogFile, e);
throw new SAXException("Failed to parse " + changelogFile, e);
}

return changeSetList;
Expand Down

0 comments on commit 77ff6de

Please sign in to comment.