Once i provide git url, i get below mentioned message. How to resolve it. Please help
An internal error occurred during form field validation (HTTP 500). Please reload the page and if the problem persists, ask the administrator for help.
“it doesn’t work” is always hard to remote debug. Try to always include these 3 things.
what did you try? (Code samples, command lines, screenshots, videos, etc)
what happened? (Error messages, description, outputs, stuff)
what did you expect to happen?
Otherwise, it’s hard for us to get into your context and you’ll have to have someone who is exactly knowledgeable come along.
Others need enough information in order to duplicate the problem that you are seeing. Others won’t be able to duplicate the problem based on your description.
When I enter a git URL into Jenkins pages (job definition, system configuration, Pipeline syntax snippet generator, etc.) it responds as I expect. That works whether I’m running Jenkins behind an NGINX reverse proxy or accessing it directly. It works with the current versions of plugins that I’m using.
But while implementing the GitHub repository URL, It replies with below message:
Message : An internal error occurred during form field validation (HTTP 500). Please reload the page and if the problem persists, ask the administrator for help.
Once i save and try to build the stuff with only GitHub repository URL and with private key credential,
i see Failure message in my console log output.
Console Log output is as follows :
FATAL: Cannot invoke “String.equals(Object)” because the return value of “org.kohsuke.putty.PuTTYKey.getAlgorithm()” is null
java.lang.NullPointerException: Cannot invoke “String.equals(Object)” because the return value of “org.kohsuke.putty.PuTTYKey.getAlgorithm()” is null
at org.kohsuke.putty.PuTTYKey.toOpenSSH(PuTTYKey.java:191)
at com.cloudbees.jenkins.plugins.sshcredentials.impl.BasicSSHUserPrivateKey.getPrivateKeys(BasicSSHUserPrivateKey.java:175)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.createSshKeyFile(CliGitAPIImpl.java:2279)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:2034)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:623)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:850)
at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1226)
at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1309)
at hudson.scm.SCM.checkout(SCM.java:540)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1240)
at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:649)
at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:85)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:521)
at hudson.model.Run.execute(Run.java:1900)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:44)
at hudson.model.ResourceController.execute(ResourceController.java:101)
at hudson.model.Executor.run(Executor.java:442)
Finished: FAILURE
If i open the configure tab once again i see below screen,
That is a 4 year old blog post. You may want to ask the author if they have an update to the blog post to make it current.
That might indicate that you entered a private key without including the algorithm portion of the private key. An SSH private key specifies its algorithm.
For example, when I created an ED25519 private key, the result private key file was: