sh 'ls -1' command inside the dir('repo2') block?pipeline {
agent any
stages {
stage('Checkout Multiple Repos') {
steps {
dir('repo1') {
checkout([$class: 'GitSCM', branches: [[name: '*/main']], userRemoteConfigs: [[url: 'https://github.com/example/repo1.git']]])
}
dir('repo2') {
checkout([$class: 'GitSCM', branches: [[name: '*/main']], userRemoteConfigs: [[url: 'https://github.com/example/repo2.git']]])
sh 'ls -1'
}
}
}
}
}hudson.plugins.git.GitException: Command "git checkout -f refs/remotes/origin/main" returned status code 128. What is the most likely cause?