Created
August 29, 2016 09:38
-
-
Save varnav/e98dc610b760de0d47a4890e07c2a1b3 to your computer and use it in GitHub Desktop.
CMD snipped for Jenkins to update windows service binaries remotely
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cmdkey.exe /add:10.15.1.15 /user:MACHINE\jenkins /pass:changeme | |
| robocopy Project\bin\Release \\MACHINE\tempshare /s /xo /fft /R:10 /xf *.config | |
| psservice \\10.15.1.15 -accepteula stop Service | |
| psexec \\10.15.1.15 -accepteula robocopy c:\tempshare c:\Service /s /xo /fft /R:10 /xf *.config | |
| psservice \\10.15.1.15 -accepteula start Service | |
| cmdkey.exe /delete:10.15.1.15 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment