I am designing a setup to run a python script on a windows machine remotely. I am planning to install python and Jenkins as a windows service on this machine (alternatively with docker). The intention is that multiple users will be able to send a request to a Jenkins API endpoint and this will trigger the same build that runs a shell command and run that python script. Master and node pcs are in a company network so security would not be an issue in the first place.
I would like to know the possibility of doing this as I planned and I appreciate any guidance. Thanks in advance.