Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ginger Jenkins Plugin 3.1 | Getting issue in downloading file from github #2238

Open
vaibhav-rastogi opened this issue Jan 28, 2022 · 1 comment

Comments

@vaibhav-rastogi
Copy link

vaibhav-rastogi commented Jan 28, 2022

Describe the bug
I am using Ginger 4.1 and Ginger Jenkins Plugin 3.1. While i am triggering jobs then Solution not getting downloaded from github both in Unix and Windows Machine.

To Reproduce
Steps to reproduce the behavior:

  1. Configure Jenkins Job with GitHub
  2. Execute and see the logs.

Expected behavior
Solution should get downloaded

Exception
[ERROR | 12:22:03:885_28-Jan] Error occurred while Downloading/Updating Solution from source control
Exception Details:
Error:failed to set credentials: The parameter is incorrect.

Source:LibGit2Sharp
Stack Trace: at LibGit2Sharp.Core.Ensure.HandleError(Int32 result)
at LibGit2Sharp.Core.Ensure.ZeroResult(Int32 result)
at LibGit2Sharp.Core.Proxy.git_remote_fetch(RemoteHandle remote, IEnumerable1 refSpecs, GitFetchOptions fetchOptions, String logMessage) at LibGit2Sharp.Commands.Fetch(Repository repository, String remote, IEnumerable1 refspecs, FetchOptions options, String logMessage)
at LibGit2Sharp.Commands.Pull(Repository repository, Signature merger, PullOptions options)
at GingerCore.SourceControl.GITSourceControl.Pull()
at GingerCore.SourceControl.GITSourceControl.GetConflictsPathsforGetLatestConflict(String path)
at GingerCore.SourceControl.GITSourceControl.GetLatest(String path, String& error, List`1& conflictsPaths)
at Ginger.SourceControl.SourceControlUI.GetLatest(String path, SourceControlBase SourceControl) in D:\BuildConfigs\tfsagent_work\4\s\Ginger\Ginger\SourceControl\SourceControlUI.cs:line 62
at Ginger.DotNetFrameworkHelper.GetLatest(String path, SourceControlBase SourceControl) in D:\BuildConfigs\tfsagent_work\4\s\Ginger\Ginger\DotNetFrameworkHelper.cs:line 550
at Ginger.SourceControl.SourceControlIntegration.DownloadSolution(String SolutionFolder, Boolean undoSolutionLocalChanges)

[ERROR | 12:22:03:906_28-Jan] Failed to Download/update Solution from source control

Jenkins Logs

///NOTE : Password is hidden due to security reason in logs/////
Started by user Vaibhav Rastogi
Running as SYSTEM
Building remotely on Node1 in workspace C:\vaibhav\Remote\workspace\GingerPOC
[WS-CLEANUP] Deleting project workspace...
[WS-CLEANUP] Deferred wipeout is used...
[WS-CLEANUP] Done
$ C:\Program Files (x86)\Amdocs\Ginger by amdocs\Ginger.exe run --type GIT --url https://github.com/vaibhav-rastogi/GingerPOC.git --user vaibhav-rastogi --pass ********************************************************************************** --encrypted --solution C:\vaibhav\Remote\workspace\GingerPOC\GingerPOC.git\SmokePOC --env QA-Test --runset "Default Run Set" --encryptionKey "w9y$B&E)" --do-not-analyze False --showui True
[INFO | 09:29:25:617_28-Jan] Loading User Profile

[INFO | 09:29:25:660_28-Jan] Loading existing User Profile at 'C:\Users\vaibhav.rastogi\AppData\Roaming\amdocs\Ginger\Ginger.UserProfile.xml'

[INFO | 09:29:25:685_28-Jan] Configuring User Type

[INFO | 09:29:25:689_28-Jan]


Ginger by Amdocs
Version: 4.1
Executer Path: C:\Program Files (x86)\Amdocs\Ginger by amdocs\Ginger.exe
Log File Path: C:\Users\vaibhav.rastogi\AppData\Roaming\amdocs\Ginger\WorkingFolder\Logs\Ginger_Log.txt


[INFO | 09:29:25:842_28-Jan] ######## Starting Automatic Run Set Execution Process ########

[INFO | 09:29:25:843_28-Jan] Parsing Run Set execution arguments...

[INFO | 09:29:25:846_28-Jan] Solution: 'C:\vaibhav\Remote\workspace\GingerPOC\GingerPOC.git\SmokePOC'

[INFO | 09:29:25:848_28-Jan] Runset: 'Default Run Set'

[INFO | 09:29:25:849_28-Jan] Environment: 'QA-Test'

[INFO | 09:29:25:850_28-Jan] Loading Configurations...

[INFO | 09:29:25:861_28-Jan] Loading Solution...

[INFO | 09:29:25:863_28-Jan] Downloading/updating Solution from source control

[INFO | 09:29:26:408_28-Jan] Showing User Message: 'Application error occurred.
Error Details: 'failed to set credentials: The parameter is incorrect.

'.'

[INFO | 09:29:26:412_28-Jan] User Message Option Selection: 'None'

[ERROR | 09:29:26:413_28-Jan] Failed to Download/update Solution from source control

[INFO | 09:29:26:431_28-Jan] Loading the Solution 'C:\vaibhav\Remote\workspace\GingerPOC\GingerPOC.git\SmokePOC'

[INFO | 09:29:26:432_28-Jan] Loading Solution- Cleaning previous Solution items

[INFO | 09:29:26:433_28-Jan] Loading Solution- Loading Solution File: 'C:\vaibhav\Remote\workspace\GingerPOC\GingerPOC.git\SmokePOC\Ginger.Solution.xml'

[ERROR | 09:29:26:435_28-Jan] Loading Solution- Error: Solution File Not Found

[WARN | 09:29:26:435_28-Jan] Issue occured while doing CLI Load and Prepare so aborting execution

[ERROR | 09:29:26:438_28-Jan] Error(s) occurred process exit code (1)

ERROR: 1
Finished: FAILURE

Desktop (please complete the following information):

  • OS: Windows, Ubuntu
  • Browser Chrome
@digvijayAMDX
Copy link
Contributor

Hi Vaibhav,
You are using older version of Jenkins plug in i.e. Jenkins Plugin 3.1, please try to use the latest one attached here Jenkins Plugin 3.3.
(Since the file format is not allowed to be uploaded here, i have renamed the file as .txt, just change the extension as .hpi after download and then import the plug in in Jenkins and then try)
Ginger_Jenkins_plugin_v3.3.txt

Otherwise we have recently released latest official version of Ginger i.e. Ginger 4.5 , please try with this once.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants