rodgeralley Posted July 24, 2017 Report Share Posted July 24, 2017 \We're doing some testing, and I'm trying to run the following trigger, to make Plastic run a basic .bat file when any commit is made in Plastic. The .bat file (for now) just creates a text file letting us know the trigger works. I placed the .bat file on the Plastic Server, and had a user make a commit at their local machine. But it doesn't appear to run the .bat file, because the .txt file it SHOULD create, doesn't get created. cm maketrigger after-checkin "Alert Buildbot" "C:\Plastic_Commit_Triggers\Buildbot_Trigger.bat" --server=disti-plastic-1:8087 --filter="rep:M1A2S_VMT,*" We've ran the .bat file on its own and it does create the .txt file when you run it. But Plastic doesn't seem to run it. Any suggestions, or am I possibly doing it wrong? The .bat file literally only runs the following command: SET > %TEMP%\SET.TXT TEMP is set in environment variables to look in the following location: %USERPROFILE%\AppData\Local\Temp Which should create the "set.txt" file that lists the environment variables, in the following location: C:\Users\ralley\AppData\Local\Temp\2 What am I missing? Link to comment Share on other sites More sharing options...
manu Posted July 25, 2017 Report Share Posted July 25, 2017 Hello, ummmm is the server service executed by "ralley"? It's installed to use Local System, that will change the %USERPROFILE% variable and %TEMP% likewise. Link to comment Share on other sites More sharing options...
rodgeralley Posted July 25, 2017 Author Report Share Posted July 25, 2017 I was using a command provided by one of our engineers. He was following this thread and had me switch it from %TEMP% to "C:\Users\ralley\AppData\Local\Temp\2\SET.TXT" and it worked. Thank you! Link to comment Share on other sites More sharing options...
manu Posted July 25, 2017 Report Share Posted July 25, 2017 All right! Happy to know it's working Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.