-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
All latest version as of writing. Controller runs on truenas scale.
I uploaded the log that shows that I configured the github app as mentioned in the docs but the declarative checkout doesn't work, all other features work. I got it working by manually configuring GitSCM but it's a bad experience after doing so much setup work for the Github app.
How I fixed it:
options
stages {
stage('Checkout') {
steps
}
I'm experiencing the same issue.
15:32:53 Started by user
XXXX
15:32:53 hudson.plugins.git.GitException: Command "git config remote.origin.url
http://url
" returned status code 128:15:32:53 stdout: 15:32:53 stderr: fatal: not in a git directory*15:32:53* 15:32:53 at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2842)15:32:53 at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2762)15:32:53 at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2757)15:32:53 at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand(CliGitAPIImpl.java:2051)15:32:53 at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand(CliGitAPIImpl.java:2063)15:32:53 at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.setRemoteUrl(CliGitAPIImpl.java:1662)15:32:53 at hudson.plugins.git.GitAPI.setRemoteUrl(GitAPI.java:180)15:32:53 at jenkins.plugins.git.GitSCMFileSystem$BuilderImpl.build(GitSCMFileSystem.java:393)15:32:53 at jenkins.scm.api.SCMFileSystem.of(SCMFileSystem.java:219)15:32:53 at org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.create(CpsScmFlowDefinition.java:124)15:32:53 at org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.create(CpsScmFlowDefinition.java:71)15:32:53 at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:311)15:32:53 at hudson.model.ResourceController.execute(ResourceController.java:101)15:32:53 at hudson.model.Executor.run(Executor.java:442)15:32:53 [withMaven] downstreamPipelineTriggerRunListener - Failure to introspect build steps: java.io.IOException: RDH/TDExtract #935 did not yet start*15:32:53* [withMaven] downstreamPipelineTriggerRunListener - Failure to introspect build steps: java.io.IOException: RDH/TDExtract #935 did not yet start*15:32:53* Finished: FAILURE
It seems as if i can't specify the repo from where to pull the jenkinsfile in the pipeline script