source profile before git clone on Agent

Hi  Support 

is it possible  to apply any profile  like "source ~/.profile"  before  git checkout ?

goal : I need to execute git  commands  with special env variables 

0
1 comment

Hi,

it's not possible to run full commands before automatic checkout, but you can always disable automatic checkout, then set your first step to be a command line script that runs any commands you want and then performs the checkout.

This said, if what you want are special environment variables, you can set them up either on the agent or on the build, and they should be passed on to the agent before the build starts. More information about that here: https://confluence.jetbrains.com/display/TCD10/Configuring+Build+Parameters

0

Please sign in to leave a comment.