As Jim already mentioned, you should use the Git Client Plugin to access the Git repositories. If you need an example on how to use that you can look into the tests of the Git Client Plugin (https://plugins.jenkins.io/git-client/ <https://plugins.jenkins.io/git-client/>) or into the implementation of the Git Forensics Plugin (https://github.com/jenkinsci/git-forensics-plugin <https://github.com/jenkinsci/git-forensics-plugin>).
> Am 20.10.2021 um 16:53 schrieb Jim Klimov <[email protected]>: > > On October 20, 2021 6:50:48 AM UTC, Petra Halouzkova <[email protected]> > wrote: >> Hello, >> I need a little help, i m new in writting jenkins plug-in but i my job >> i >> write plug-in which shoul collect commits from repo between two release >> version and send them to jira. >> My plug-in works fine when build run on master but fail when it run on >> agent. I guess it is because >> during build i m checking workspace and in calling git command (from >> buildprocessor) but on agent i cant find workspace with checkout >> direrectory. >> How can i fix that? >> Thanks >> Petra > > As a shot in the dark: are you running the git command as a system process, > or wrapped via Git Client Plugin? The wraps should include a proxy mode to > effectively tell the agent to run stuff and return results, and AFAIK this > should be transparent to plugin authors and users (probably depends on node > context, workspace path, etc. behind the scenes). > > Jim > -- > Typos courtesy of K-9 Mail on my Android > > -- > You received this message because you are subscribed to the Google Groups > "Jenkins Developers" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jenkinsci-dev/B06C45F0-58E5-4CD3-B9C5-B7E8D495D118%40cos.ru. -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/004BF4E2-DF61-4B63-8944-8C486E9F50A5%40gmail.com.
