Since the git tool may be entirely internal to the Jenkins java code (as
with JGit), I'm not sure that will be as portable as you want it to be.

I don't know the answer to your specific question about the data available
related to a specific tool.

Mark Waite

On Fri, Oct 12, 2018 at 2:32 PM t3knoid <t3kn...@gmail.com> wrote:

> Typically I use checkout to checkout code from git. But sometimes I need
> to shell out and execute git. I can hardcode the path in my shell script or
> add the git directory in the PATH variable. I was thinking if there was a
> way to avoid that and use the configured git tool within Jenkins and pass
> that value in my shell script. So in essence, run a command similar to this:
>
> bat returnStdout: true, script: '${installed_git}  rev-list HEAD --count'
>
> Where ${installed_git} contains the value of the path of the git tool
> configured in Jenkins.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/49ae7954-620f-44bf-b384-bef9bccb9e27%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-users/49ae7954-620f-44bf-b384-bef9bccb9e27%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtGsM8XBULUXPm4G22OJyYB%3D19UKQfeKZGs3djJPzXEH4A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to