Skip to content

Commit

Permalink
ISSUE: JENKINS-35165 Jenkins plugin cannot work with ALM over SSL
Browse files Browse the repository at this point in the history
----
change the link according to the address
  • Loading branch information
sonic6x committed Jun 2, 2016
1 parent fc869cc commit dbb600f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions HpToolsLauncher/Runners/AlmTestSetsRunner.cs
Expand Up @@ -736,9 +736,13 @@ private void WriteTestRunSummary(ITSTest prevTest)
private string GetTestRunLink(ITSTest prevTest, int runid)
{
bool oldQc = CheckIsOldQc();
bool useSSL = (m_qcServer.Contains("https://"));

ITestSet set = prevTest.TestSet;
string testRunLink = "td://" + m_qcProject + "." + m_qcDomain + "." + m_qcServer.Replace("http://", "") + "/TestLabModule-000000003649890581?EntityType=IRun&EntityID=" + runid;
string testRunLinkQc10 = "td://" + m_qcProject + "." + m_qcDomain + "." + m_qcServer.Replace("http://", "") + "/Test%20Lab?Action=FindRun&TestSetID=" + set.ID + "&TestInstanceID=" + prevTest.ID + "&RunID=" + runid;
string testRunLink = useSSL ? ("tds://" + m_qcProject + "." + m_qcDomain + "." + m_qcServer.Replace("https://", "") + "/TestLabModule-000000003649890581?EntityType=IRun&EntityID=" + runid)
: ("td://" + m_qcProject + "." + m_qcDomain + "." + m_qcServer.Replace("http://", "") + "/TestLabModule-000000003649890581?EntityType=IRun&EntityID=" + runid);
string testRunLinkQc10 = useSSL ? ("tds://" + m_qcProject + "." + m_qcDomain + "." + m_qcServer.Replace("https://", "") + "/Test%20Lab?Action=FindRun&TestSetID=" + set.ID + "&TestInstanceID=" + prevTest.ID + "&RunID=" + runid)
: ("td://" + m_qcProject + "." + m_qcDomain + "." + m_qcServer.Replace("http://", "") + "/Test%20Lab?Action=FindRun&TestSetID=" + set.ID + "&TestInstanceID=" + prevTest.ID + "&RunID=" + runid);
string linkStr = (oldQc ? testRunLinkQc10 : testRunLink);
return linkStr;
}
Expand Down
Binary file modified src/main/resources/HpToolsAborter.exe
Binary file not shown.
Binary file modified src/main/resources/HpToolsLauncher.exe
Binary file not shown.
Binary file modified src/main/resources/LRAnalysisLauncher.exe
Binary file not shown.

0 comments on commit dbb600f

Please sign in to comment.