Skip to content

Commit 14c2bea

Browse files
Merge pull request #5 from checkmarx-ltd/Version_90.0_Fix_55025
Fix sub folders issue, customer ticket number 55025, and bug number 2…
2 parents b22242d + a7cae53 commit 14c2bea

5 files changed

Lines changed: 12 additions & 8 deletions

File tree

CxViewerAction/Helpers/LoginHelper.cs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -381,15 +381,19 @@ public static bool DolLogin(LoginData login, CxWebServiceClient client)
381381

382382
if (oidcLoginResult.IsSuccessful)
383383
{
384-
cxRestApi = new CxRESTApi(login);
384+
//Add logs for print Server url and AccessToken
385+
Logger.Create().Debug("Server URL: " + login.ServerBaseUri);
386+
cxRestApi = new CxRESTApi(login);
385387
string accessToken = cxRestApi.Login(oidcLoginResult.Code);
386388
cxRestApi.GetPermissions(accessToken);
387389
loginSucceeded = true;
388-
390+
Logger.Create().Debug("Succeeded to login. ");
389391
}
390392
else
391393
{
392-
_oidcLoginHelper.CloseLoginWindow();
394+
Logger.Create().Debug("Server URL: " + login.ServerBaseUri);
395+
_oidcLoginHelper.CloseLoginWindow();
396+
Logger.Create().Debug("Failed to login. ");
393397
}
394398
return loginSucceeded;
395399

CxViewerAction/Helpers/ZipHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ private static byte[] Compress(Project[] projects, string sExcludeFile, string s
123123

124124
int subProjects = projects.Where(p2 => p.RootPath.Contains(p2.RootPath)).Count();
125125

126-
if (subProjects == 1 && dirMatch.IsMatch(Path.GetFileName(p.RootPath))) //If the project is not a subProject and not excluded
126+
if (subProjects >= 1 && dirMatch.IsMatch(Path.GetFileName(p.RootPath))) //If the project is not a subProject and not excluded
127127
{
128128
foreach (string filePath in p.FilePathList) // scan only the file selected
129129
{

CxViewerVSIX/CxViewerPackage.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ namespace CxViewerVSIX
3535
/// </remarks>
3636
///
3737
[PackageRegistration(UseManagedResourcesOnly = true)]
38-
[InstalledProductRegistration("#110", "#112", "9.00.6", IconResourceID = 400)] // Info on this package for Help/About
38+
[InstalledProductRegistration("#110", "#112", "9.00.7", IconResourceID = 400)] // Info on this package for Help/About
3939
[ProvideMenuResource("Menus.ctmenu", 1)]
4040
//[ProvideAutoLoad("ADFC4E64-0397-11D1-9F4E-00A0C911004F")]
4141
[Guid(CxViewerPackage.PackageGuidString)]

CxViewerVSIX/source.extension.vsixmanifest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<PackageManifest Version="2.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2011" xmlns:d="http://schemas.microsoft.com/developer/vsx-schema-design/2011">
33
<Metadata>
4-
<Identity Id="ae98c9e5-8e14-4c92-b45a-c4fd24a49123" Publisher="Checkmarx" Version="9.00.6" Language="en-US" />
4+
<Identity Id="ae98c9e5-8e14-4c92-b45a-c4fd24a49123" Publisher="Checkmarx" Version="9.00.7" Language="en-US" />
55
<DisplayName>CxViewer</DisplayName>
66
<Description xml:space="preserve" >Checkmarx Visual Studio Plugin</Description>
77
<MoreInfo>http://www.checkmarx.com</MoreInfo>

Jenkinsfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ pipeline {
3838
agent { node { label vmName } }
3939
steps {
4040
script {
41-
fileOperations([folderRenameOperation(source: "${WORKSPACE}\\${JOB_NAME}\\Artifacts\\CxViewerVSIX.vsix", destination: "${WORKSPACE}\\${JOB_NAME}\\Artifacts\\CxViewerVSIX-9.00.6.vsix")])
42-
kit.Upload_To_Artifactory("${WORKSPACE}\\${JOB_NAME}\\Artifacts\\CxViewerVSIX-9.00.6.vsix", "plugins-release-local/com/checkmarx/visual-studio/")
41+
fileOperations([folderRenameOperation(source: "${WORKSPACE}\\${JOB_NAME}\\Artifacts\\CxViewerVSIX.vsix", destination: "${WORKSPACE}\\${JOB_NAME}\\Artifacts\\CxViewerVSIX-9.00.7.vsix")])
42+
kit.Upload_To_Artifactory("${WORKSPACE}\\${JOB_NAME}\\Artifacts\\CxViewerVSIX-9.00.7.vsix", "plugins-release-local/com/checkmarx/visual-studio/")
4343
}
4444
}
4545
}

0 commit comments

Comments
 (0)