Pipeline checkout crashing on git rev-parse with returned status code 128
I am trying to make a simple pipline stored in a separate repository to test each commit pushed to the Gitlab repository so i went with something like
#!/usr/bin/env groovy
node {
stage('Checkout') {
git branch: 'dev', url: 'git@xxxxxxxxxxxxxxxx:telsol/reporting-api.git'
}
}
Gitlab hook is set with Push events and SSL verification off
The pipeline repository is telsol/pipelines, and the project is telsol/reporting-api.
it was working fine for a while but lately runing the pipeline job manually works but a push even/test webhook doesnt work and crashes with this error:
Started by GitLab push by Tarik AMINE
Checking out git git@XXXXXXXXXXXXXXXXXXX:telsol/pipelines.git into /var/lib/jenkins/workspace/reporting-api@script to read deploy_reporting_api.jenkinsfile
Cloning the remote Git repository
Cloning repository git@XXXXXXXXXXXXXXXXXXX:telsol/pipelines.git
> git init /var/lib/jenkins/workspace/reporting-api@script # timeout=10
Fetching upstream changes from git@XXXXXXXXXXXXXXXXXXX:telsol/pipelines.git
> git --version # timeout=10
> git fetch --tags --progress git@XXXXXXXXXXXXXXXXXXX:telsol/pipelines.git +refs/heads/*:refs/remotes/telsol_pipeline/*
> git config remote.telsol_pipeline.url git@XXXXXXXXXXXXXXXXXXX:telsol/pipelines.git # timeout=10
> git config --add remote.telsol_pipeline.fetch +refs/heads/*:refs/remotes/telsol_pipeline/* # timeout=10
> git config remote.telsol_pipeline.url git@XXXXXXXXXXXXXXXXXXX:telsol/pipelines.git # timeout=10
Fetching upstream changes from git@XXXXXXXXXXXXXXXXXXX:telsol/pipelines.git
> git fetch --tags --progress git@XXXXXXXXXXXXXXXXXXX:telsol/pipelines.git +refs/heads/*:refs/remotes/telsol_pipeline/*
skipping resolution of commit remotes/telsol_pipeline/master, since it originates from another repository
> git rev-parse refs/remotes/telsol_pipeline/master^{commit} # timeout=10
> git rev-parse refs/remotes/telsol_pipeline/telsol_pipeline/master^{commit} # timeout=10
Checking out Revision 9b0c3eeeea12ded7292fa89739fce33044c3f974 (refs/remotes/telsol_pipeline/master)
> git config core.sparsecheckout # timeout=10
> git checkout -f 9b0c3eeeea12ded7292fa89739fce33044c3f974
Commit message: "test"
> git rev-list --no-walk 9b0c3eeeea12ded7292fa89739fce33044c3f974 # timeout=10
Running in Durability level: MAX_SURVIVABILITY
[Pipeline] node
Running on Jenkins in /var/lib/jenkins/workspace/reporting-api
[Pipeline] {
[Pipeline] stage
[Pipeline] { (Checkout)
[Pipeline] git
Cloning the remote Git repository
Cloning repository git@XXXXXXXXXXXXXXXXXXX:telsol/reporting-api.git
> git init /var/lib/jenkins/workspace/reporting-api # timeout=10
Fetching upstream changes from git@XXXXXXXXXXXXXXXXXXX:telsol/reporting-api.git
> git --version # timeout=10
> git fetch --tags --progress git@XXXXXXXXXXXXXXXXXXX:telsol/reporting-api.git +refs/heads/*:refs/remotes/origin/*
> git config remote.origin.url git@XXXXXXXXXXXXXXXXXXX:telsol/reporting-api.git # timeout=10
> git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10
> git config remote.origin.url git@XXXXXXXXXXXXXXXXXXX:telsol/reporting-api.git # timeout=10
Fetching upstream changes from git@XXXXXXXXXXXXXXXXXXX:telsol/reporting-api.git
> git fetch --tags --progress git@XXXXXXXXXXXXXXXXXXX:telsol/reporting-api.git +refs/heads/*:refs/remotes/origin/*
> git rev-parse remotes/telsol_pipeline/master^{commit} # timeout=10
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
hudson.plugins.git.GitException: Command "git rev-parse remotes/telsol_pipeline/master^{commit}" returned status code 128:
stdout: remotes/telsol_pipeline/master^{commit}
stderr: fatal: argument 'remotes/telsol_pipeline/master^{commit}' ambigu : révision inconnue ou chemin inexistant.
Utilisez '--' pour séparer les chemins des révisions, comme ceci :
'git <commande> [<révision>...] -- [<chemin>...]'
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2016)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1984)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1980)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand(CliGitAPIImpl.java:1612)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand(CliGitAPIImpl.java:1624)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.revParse(CliGitAPIImpl.java:809)
at hudson.plugins.git.GitAPI.revParse(GitAPI.java:316)
at hudson.plugins.git.RevisionParameterAction.toRevision(RevisionParameterAction.java:98)
at hudson.plugins.git.GitSCM.determineRevisionToBuild(GitSCM.java:1070)
at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1187)
at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:120)
at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:90)
at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:77)
at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution$1$1.call(SynchronousNonBlockingStepExecution.java:50)
at hudson.security.ACL.impersonate(ACL.java:290)
at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution$1.run(SynchronousNonBlockingStepExecution.java:47)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Finished: FAILURE
What i noticed is the second rev-parse for the project is on the pipeline which is the only lead i have.
stderr: fatal: argument 'remotes/telsol_pipeline/master^{commit}' ambigu : révision inconnue ou chemin inexistant.
git jenkins gitlab jenkins-pipeline
add a comment |
I am trying to make a simple pipline stored in a separate repository to test each commit pushed to the Gitlab repository so i went with something like
#!/usr/bin/env groovy
node {
stage('Checkout') {
git branch: 'dev', url: 'git@xxxxxxxxxxxxxxxx:telsol/reporting-api.git'
}
}
Gitlab hook is set with Push events and SSL verification off
The pipeline repository is telsol/pipelines, and the project is telsol/reporting-api.
it was working fine for a while but lately runing the pipeline job manually works but a push even/test webhook doesnt work and crashes with this error:
Started by GitLab push by Tarik AMINE
Checking out git git@XXXXXXXXXXXXXXXXXXX:telsol/pipelines.git into /var/lib/jenkins/workspace/reporting-api@script to read deploy_reporting_api.jenkinsfile
Cloning the remote Git repository
Cloning repository git@XXXXXXXXXXXXXXXXXXX:telsol/pipelines.git
> git init /var/lib/jenkins/workspace/reporting-api@script # timeout=10
Fetching upstream changes from git@XXXXXXXXXXXXXXXXXXX:telsol/pipelines.git
> git --version # timeout=10
> git fetch --tags --progress git@XXXXXXXXXXXXXXXXXXX:telsol/pipelines.git +refs/heads/*:refs/remotes/telsol_pipeline/*
> git config remote.telsol_pipeline.url git@XXXXXXXXXXXXXXXXXXX:telsol/pipelines.git # timeout=10
> git config --add remote.telsol_pipeline.fetch +refs/heads/*:refs/remotes/telsol_pipeline/* # timeout=10
> git config remote.telsol_pipeline.url git@XXXXXXXXXXXXXXXXXXX:telsol/pipelines.git # timeout=10
Fetching upstream changes from git@XXXXXXXXXXXXXXXXXXX:telsol/pipelines.git
> git fetch --tags --progress git@XXXXXXXXXXXXXXXXXXX:telsol/pipelines.git +refs/heads/*:refs/remotes/telsol_pipeline/*
skipping resolution of commit remotes/telsol_pipeline/master, since it originates from another repository
> git rev-parse refs/remotes/telsol_pipeline/master^{commit} # timeout=10
> git rev-parse refs/remotes/telsol_pipeline/telsol_pipeline/master^{commit} # timeout=10
Checking out Revision 9b0c3eeeea12ded7292fa89739fce33044c3f974 (refs/remotes/telsol_pipeline/master)
> git config core.sparsecheckout # timeout=10
> git checkout -f 9b0c3eeeea12ded7292fa89739fce33044c3f974
Commit message: "test"
> git rev-list --no-walk 9b0c3eeeea12ded7292fa89739fce33044c3f974 # timeout=10
Running in Durability level: MAX_SURVIVABILITY
[Pipeline] node
Running on Jenkins in /var/lib/jenkins/workspace/reporting-api
[Pipeline] {
[Pipeline] stage
[Pipeline] { (Checkout)
[Pipeline] git
Cloning the remote Git repository
Cloning repository git@XXXXXXXXXXXXXXXXXXX:telsol/reporting-api.git
> git init /var/lib/jenkins/workspace/reporting-api # timeout=10
Fetching upstream changes from git@XXXXXXXXXXXXXXXXXXX:telsol/reporting-api.git
> git --version # timeout=10
> git fetch --tags --progress git@XXXXXXXXXXXXXXXXXXX:telsol/reporting-api.git +refs/heads/*:refs/remotes/origin/*
> git config remote.origin.url git@XXXXXXXXXXXXXXXXXXX:telsol/reporting-api.git # timeout=10
> git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10
> git config remote.origin.url git@XXXXXXXXXXXXXXXXXXX:telsol/reporting-api.git # timeout=10
Fetching upstream changes from git@XXXXXXXXXXXXXXXXXXX:telsol/reporting-api.git
> git fetch --tags --progress git@XXXXXXXXXXXXXXXXXXX:telsol/reporting-api.git +refs/heads/*:refs/remotes/origin/*
> git rev-parse remotes/telsol_pipeline/master^{commit} # timeout=10
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
hudson.plugins.git.GitException: Command "git rev-parse remotes/telsol_pipeline/master^{commit}" returned status code 128:
stdout: remotes/telsol_pipeline/master^{commit}
stderr: fatal: argument 'remotes/telsol_pipeline/master^{commit}' ambigu : révision inconnue ou chemin inexistant.
Utilisez '--' pour séparer les chemins des révisions, comme ceci :
'git <commande> [<révision>...] -- [<chemin>...]'
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2016)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1984)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1980)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand(CliGitAPIImpl.java:1612)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand(CliGitAPIImpl.java:1624)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.revParse(CliGitAPIImpl.java:809)
at hudson.plugins.git.GitAPI.revParse(GitAPI.java:316)
at hudson.plugins.git.RevisionParameterAction.toRevision(RevisionParameterAction.java:98)
at hudson.plugins.git.GitSCM.determineRevisionToBuild(GitSCM.java:1070)
at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1187)
at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:120)
at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:90)
at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:77)
at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution$1$1.call(SynchronousNonBlockingStepExecution.java:50)
at hudson.security.ACL.impersonate(ACL.java:290)
at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution$1.run(SynchronousNonBlockingStepExecution.java:47)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Finished: FAILURE
What i noticed is the second rev-parse for the project is on the pipeline which is the only lead i have.
stderr: fatal: argument 'remotes/telsol_pipeline/master^{commit}' ambigu : révision inconnue ou chemin inexistant.
git jenkins gitlab jenkins-pipeline
add a comment |
I am trying to make a simple pipline stored in a separate repository to test each commit pushed to the Gitlab repository so i went with something like
#!/usr/bin/env groovy
node {
stage('Checkout') {
git branch: 'dev', url: 'git@xxxxxxxxxxxxxxxx:telsol/reporting-api.git'
}
}
Gitlab hook is set with Push events and SSL verification off
The pipeline repository is telsol/pipelines, and the project is telsol/reporting-api.
it was working fine for a while but lately runing the pipeline job manually works but a push even/test webhook doesnt work and crashes with this error:
Started by GitLab push by Tarik AMINE
Checking out git git@XXXXXXXXXXXXXXXXXXX:telsol/pipelines.git into /var/lib/jenkins/workspace/reporting-api@script to read deploy_reporting_api.jenkinsfile
Cloning the remote Git repository
Cloning repository git@XXXXXXXXXXXXXXXXXXX:telsol/pipelines.git
> git init /var/lib/jenkins/workspace/reporting-api@script # timeout=10
Fetching upstream changes from git@XXXXXXXXXXXXXXXXXXX:telsol/pipelines.git
> git --version # timeout=10
> git fetch --tags --progress git@XXXXXXXXXXXXXXXXXXX:telsol/pipelines.git +refs/heads/*:refs/remotes/telsol_pipeline/*
> git config remote.telsol_pipeline.url git@XXXXXXXXXXXXXXXXXXX:telsol/pipelines.git # timeout=10
> git config --add remote.telsol_pipeline.fetch +refs/heads/*:refs/remotes/telsol_pipeline/* # timeout=10
> git config remote.telsol_pipeline.url git@XXXXXXXXXXXXXXXXXXX:telsol/pipelines.git # timeout=10
Fetching upstream changes from git@XXXXXXXXXXXXXXXXXXX:telsol/pipelines.git
> git fetch --tags --progress git@XXXXXXXXXXXXXXXXXXX:telsol/pipelines.git +refs/heads/*:refs/remotes/telsol_pipeline/*
skipping resolution of commit remotes/telsol_pipeline/master, since it originates from another repository
> git rev-parse refs/remotes/telsol_pipeline/master^{commit} # timeout=10
> git rev-parse refs/remotes/telsol_pipeline/telsol_pipeline/master^{commit} # timeout=10
Checking out Revision 9b0c3eeeea12ded7292fa89739fce33044c3f974 (refs/remotes/telsol_pipeline/master)
> git config core.sparsecheckout # timeout=10
> git checkout -f 9b0c3eeeea12ded7292fa89739fce33044c3f974
Commit message: "test"
> git rev-list --no-walk 9b0c3eeeea12ded7292fa89739fce33044c3f974 # timeout=10
Running in Durability level: MAX_SURVIVABILITY
[Pipeline] node
Running on Jenkins in /var/lib/jenkins/workspace/reporting-api
[Pipeline] {
[Pipeline] stage
[Pipeline] { (Checkout)
[Pipeline] git
Cloning the remote Git repository
Cloning repository git@XXXXXXXXXXXXXXXXXXX:telsol/reporting-api.git
> git init /var/lib/jenkins/workspace/reporting-api # timeout=10
Fetching upstream changes from git@XXXXXXXXXXXXXXXXXXX:telsol/reporting-api.git
> git --version # timeout=10
> git fetch --tags --progress git@XXXXXXXXXXXXXXXXXXX:telsol/reporting-api.git +refs/heads/*:refs/remotes/origin/*
> git config remote.origin.url git@XXXXXXXXXXXXXXXXXXX:telsol/reporting-api.git # timeout=10
> git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10
> git config remote.origin.url git@XXXXXXXXXXXXXXXXXXX:telsol/reporting-api.git # timeout=10
Fetching upstream changes from git@XXXXXXXXXXXXXXXXXXX:telsol/reporting-api.git
> git fetch --tags --progress git@XXXXXXXXXXXXXXXXXXX:telsol/reporting-api.git +refs/heads/*:refs/remotes/origin/*
> git rev-parse remotes/telsol_pipeline/master^{commit} # timeout=10
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
hudson.plugins.git.GitException: Command "git rev-parse remotes/telsol_pipeline/master^{commit}" returned status code 128:
stdout: remotes/telsol_pipeline/master^{commit}
stderr: fatal: argument 'remotes/telsol_pipeline/master^{commit}' ambigu : révision inconnue ou chemin inexistant.
Utilisez '--' pour séparer les chemins des révisions, comme ceci :
'git <commande> [<révision>...] -- [<chemin>...]'
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2016)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1984)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1980)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand(CliGitAPIImpl.java:1612)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand(CliGitAPIImpl.java:1624)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.revParse(CliGitAPIImpl.java:809)
at hudson.plugins.git.GitAPI.revParse(GitAPI.java:316)
at hudson.plugins.git.RevisionParameterAction.toRevision(RevisionParameterAction.java:98)
at hudson.plugins.git.GitSCM.determineRevisionToBuild(GitSCM.java:1070)
at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1187)
at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:120)
at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:90)
at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:77)
at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution$1$1.call(SynchronousNonBlockingStepExecution.java:50)
at hudson.security.ACL.impersonate(ACL.java:290)
at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution$1.run(SynchronousNonBlockingStepExecution.java:47)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Finished: FAILURE
What i noticed is the second rev-parse for the project is on the pipeline which is the only lead i have.
stderr: fatal: argument 'remotes/telsol_pipeline/master^{commit}' ambigu : révision inconnue ou chemin inexistant.
git jenkins gitlab jenkins-pipeline
I am trying to make a simple pipline stored in a separate repository to test each commit pushed to the Gitlab repository so i went with something like
#!/usr/bin/env groovy
node {
stage('Checkout') {
git branch: 'dev', url: 'git@xxxxxxxxxxxxxxxx:telsol/reporting-api.git'
}
}
Gitlab hook is set with Push events and SSL verification off
The pipeline repository is telsol/pipelines, and the project is telsol/reporting-api.
it was working fine for a while but lately runing the pipeline job manually works but a push even/test webhook doesnt work and crashes with this error:
Started by GitLab push by Tarik AMINE
Checking out git git@XXXXXXXXXXXXXXXXXXX:telsol/pipelines.git into /var/lib/jenkins/workspace/reporting-api@script to read deploy_reporting_api.jenkinsfile
Cloning the remote Git repository
Cloning repository git@XXXXXXXXXXXXXXXXXXX:telsol/pipelines.git
> git init /var/lib/jenkins/workspace/reporting-api@script # timeout=10
Fetching upstream changes from git@XXXXXXXXXXXXXXXXXXX:telsol/pipelines.git
> git --version # timeout=10
> git fetch --tags --progress git@XXXXXXXXXXXXXXXXXXX:telsol/pipelines.git +refs/heads/*:refs/remotes/telsol_pipeline/*
> git config remote.telsol_pipeline.url git@XXXXXXXXXXXXXXXXXXX:telsol/pipelines.git # timeout=10
> git config --add remote.telsol_pipeline.fetch +refs/heads/*:refs/remotes/telsol_pipeline/* # timeout=10
> git config remote.telsol_pipeline.url git@XXXXXXXXXXXXXXXXXXX:telsol/pipelines.git # timeout=10
Fetching upstream changes from git@XXXXXXXXXXXXXXXXXXX:telsol/pipelines.git
> git fetch --tags --progress git@XXXXXXXXXXXXXXXXXXX:telsol/pipelines.git +refs/heads/*:refs/remotes/telsol_pipeline/*
skipping resolution of commit remotes/telsol_pipeline/master, since it originates from another repository
> git rev-parse refs/remotes/telsol_pipeline/master^{commit} # timeout=10
> git rev-parse refs/remotes/telsol_pipeline/telsol_pipeline/master^{commit} # timeout=10
Checking out Revision 9b0c3eeeea12ded7292fa89739fce33044c3f974 (refs/remotes/telsol_pipeline/master)
> git config core.sparsecheckout # timeout=10
> git checkout -f 9b0c3eeeea12ded7292fa89739fce33044c3f974
Commit message: "test"
> git rev-list --no-walk 9b0c3eeeea12ded7292fa89739fce33044c3f974 # timeout=10
Running in Durability level: MAX_SURVIVABILITY
[Pipeline] node
Running on Jenkins in /var/lib/jenkins/workspace/reporting-api
[Pipeline] {
[Pipeline] stage
[Pipeline] { (Checkout)
[Pipeline] git
Cloning the remote Git repository
Cloning repository git@XXXXXXXXXXXXXXXXXXX:telsol/reporting-api.git
> git init /var/lib/jenkins/workspace/reporting-api # timeout=10
Fetching upstream changes from git@XXXXXXXXXXXXXXXXXXX:telsol/reporting-api.git
> git --version # timeout=10
> git fetch --tags --progress git@XXXXXXXXXXXXXXXXXXX:telsol/reporting-api.git +refs/heads/*:refs/remotes/origin/*
> git config remote.origin.url git@XXXXXXXXXXXXXXXXXXX:telsol/reporting-api.git # timeout=10
> git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10
> git config remote.origin.url git@XXXXXXXXXXXXXXXXXXX:telsol/reporting-api.git # timeout=10
Fetching upstream changes from git@XXXXXXXXXXXXXXXXXXX:telsol/reporting-api.git
> git fetch --tags --progress git@XXXXXXXXXXXXXXXXXXX:telsol/reporting-api.git +refs/heads/*:refs/remotes/origin/*
> git rev-parse remotes/telsol_pipeline/master^{commit} # timeout=10
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
hudson.plugins.git.GitException: Command "git rev-parse remotes/telsol_pipeline/master^{commit}" returned status code 128:
stdout: remotes/telsol_pipeline/master^{commit}
stderr: fatal: argument 'remotes/telsol_pipeline/master^{commit}' ambigu : révision inconnue ou chemin inexistant.
Utilisez '--' pour séparer les chemins des révisions, comme ceci :
'git <commande> [<révision>...] -- [<chemin>...]'
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2016)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1984)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1980)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand(CliGitAPIImpl.java:1612)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand(CliGitAPIImpl.java:1624)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.revParse(CliGitAPIImpl.java:809)
at hudson.plugins.git.GitAPI.revParse(GitAPI.java:316)
at hudson.plugins.git.RevisionParameterAction.toRevision(RevisionParameterAction.java:98)
at hudson.plugins.git.GitSCM.determineRevisionToBuild(GitSCM.java:1070)
at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1187)
at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:120)
at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:90)
at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:77)
at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution$1$1.call(SynchronousNonBlockingStepExecution.java:50)
at hudson.security.ACL.impersonate(ACL.java:290)
at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution$1.run(SynchronousNonBlockingStepExecution.java:47)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Finished: FAILURE
What i noticed is the second rev-parse for the project is on the pipeline which is the only lead i have.
stderr: fatal: argument 'remotes/telsol_pipeline/master^{commit}' ambigu : révision inconnue ou chemin inexistant.
git jenkins gitlab jenkins-pipeline
git jenkins gitlab jenkins-pipeline
asked Dec 28 '18 at 9:30
TarikTarik
85621224
85621224
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53956302%2fpipeline-checkout-crashing-on-git-rev-parse-with-returned-status-code-128%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53956302%2fpipeline-checkout-crashing-on-git-rev-parse-with-returned-status-code-128%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown