-
Notifications
You must be signed in to change notification settings - Fork 33
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
Remote checkout not working #209
Comments
Hi, Sorry for the delay but I'm in holidays and this plugin have few developers 😉 . The error message seems indicate that the git client is not installed on your worker, can you verify your worker tools configuration ? |
@philippart-s - Not to worry. This is not an urgent thing.
I have exec'd into one of the agents and confirmed that git is installed and on the path. The git checkout defined in the pipeline manifest I have included above also has no issues. |
@philippart-s I am getting the same error without using kubernetes. pipeline script: def repositories = [
'ssh://[email protected]/git-repository-url'
]
def credentials = 'credentials-id'
def builders = [:]
repositories.eachWithIndex { elem, index ->
builders[index.toString()] = {
node('build-agent-with-git-installed') {
stage('checkout') {
checkout([$class: 'GitSCM', branches: [[name: '*/main']], extensions: [[$class: 'CloneOption', noTags: false, reference: '', shallow: false]], userRemoteConfigs: [[credentialsId: credentials, url: elem]]])
}
stage('Get next version ...') {
echo 'start new version'
sh('which git')
sh('echo $PATH')
sh('git tag')
sh('git show 0.1.0')
CURRENT_VERSION=currentVersion()
echo "Current version: $CURRENT_VERSION"
NEXT_VERSION=nextVersion()
echo "Next version : $NEXT_VERSION"
}
}
}
}
parallel builders build log:
|
Is there something new? Unfortunately I've got the same problem. |
I also see this error "java.io.IOException: Cannot run program "git"... |
Jenkins and plugins versions report
Environment
What Operating System are you using (both controller, and any agents involved in the problem)?
Reproduction steps
Expected Results
Next version to be generated out
Actual Results
Anything else?
There are semver tags present in the repository (e.g. 0.0.9). Likely related to #173
The text was updated successfully, but these errors were encountered: