Open guwenqing opened 3 years ago
Apparently, the clone in master slave works without issue, so that the pipeline definition is obtained from the git remote server (in our case Gerrit). But when running in actual slaves for the actual workload, it does not work to clone the repo and prepare the workspace.
Hi,
We are using Jenkins pipeline in our CICD and we are in a phase to replace all Jenkins crendentials with Vault ones. But it seems git plugin is not happy with Vault username-password credential. (Pipeline is stored in git, and we need to checkout with git plugin).
The pipeline is very simple:
pipeline { agent { label "adp" } stages { stage('Hello') { steps { sh 'find *' sh 'hello' } } } }
And the pipeline log is this: Started by user Wenqing Gu Checking out git https://useraccount@gerrit.example.com/a/example-repo into /proj/eiffel162_config_fem16s10/eiffel_home/jobs/test/workspace@script to read pipelines/minimal/Jenkinsfile The recommended git tool is: NONE using credential useraccount-vault Wiping out workspace first. Cloning the remote Git repository Cloning repository https://useraccount@gerrit.example.com/a/example-repo