Run user script on a local machine before remote build

Answered

Hi!

I'm using a remote toolchain. Before executing a remote build, I'd like to run a local python script that performs some repo cleanup and rsyncs files to remote server (I don't use the built-in deploy mechanism because the repository is too large; the script knows to only sync files that've been changed since the last commit). My question is similar to this one, but in my case, CMake build is running at a remote host, while the script needs to run locally.

So, is there a way to do it?

If not, could you maybe help me setting up a hook with live plugin, because I have no idea where to start.

0
3 comments
Avatar
Permanently deleted user

I don't get it, how exactly do I run external tool before remote build? Note: I'm not interested in running external tool before launch, I need it before every build; I'm also not interested in running external tool when building locally, I need it only before remote builds.

0

There is no way to launch a local script automatically before each remote build. The only way I can think of is to call a local external tool manually before launching the build. You can add a shortcut for it.

0

Please sign in to leave a comment.