delivery-pipeline

Can I use git command in delivery pipeline if git is installed in different path on jenkins agent than on master

◇◆丶佛笑我妖孽 提交于 2021-02-07 10:20:31
问题 I have the following scenario. I tried a simple pipeline job that clones my remote repo. It works fine when i set it to execute on master. node { //stage 'Checkout' git([url: 'ssh://someusername@gerrit.mycompany.domain:29418/bla/bla.git', branch: 'mybranch']) } It uses the default git installation to run the command. I have configured git on a different pat for slave in jenkins configuration. when i try to run the same pipeline on a slave, it fails because it always tries to go the default

Can I use git command in delivery pipeline if git is installed in different path on jenkins agent than on master

梦想与她 提交于 2021-02-07 10:20:10
问题 I have the following scenario. I tried a simple pipeline job that clones my remote repo. It works fine when i set it to execute on master. node { //stage 'Checkout' git([url: 'ssh://someusername@gerrit.mycompany.domain:29418/bla/bla.git', branch: 'mybranch']) } It uses the default git installation to run the command. I have configured git on a different pat for slave in jenkins configuration. when i try to run the same pipeline on a slave, it fails because it always tries to go the default