leonelhl

Jenkins Pipeline Visual

Aug 7th, 2019
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.37 KB | None | 0 0
  1. copy %WORKSPACE%\Endoso.vbp %WORKSPACE%\Endoso-interno.vbp
  2.  
  3. net use y: \\rsaclsv406\h$ %PWD% /user:RSACL\sisjenkins
  4. xcopy "%WORKSPACE%" "y:\compilaciones\Endoso\" /S /Y
  5.  
  6. winrs -r:rsaclsv406 -u:RSACL\sisjenkins -p:%PWD% -d:"H:\fuentes" "compila-generico.bat H:\compilaciones\Endoso Endoso 10.140.129.69 H:\APLSIGMA\NEWSIST\Componentes"
  7.  
  8. echo "Publicando la compilacion"
  9. net use z: \\sgv1055\h$ %PWD% /user:RSACL\sisjenkins
  10. c:\windows\system32\cmd.exe /C rename "z:\APLSIGMA\NEWSIST\Componentes\..\\Endoso\Endoso.exe" "Endoso.exe_%date%-16491%random%-uuid-b1a8936d-4c9f-4bfa-a602-332f8c3517ee.exe.old"
  11. c:\windows\system32\cmd.exe /C mkdir "z:\APLSIGMA\NEWSIST\Componentes\..\\Endoso"
  12. c:\windows\system32\xcopy /y /i /s "y:\compilaciones\Endoso\*.exe" "z:\APLSIGMA\NEWSIST\Componentes\..\\Endoso"
  13. c:\windows\system32\xcopy /y /i /s "y:\compilaciones\Endoso\*.ini" "z:\APLSIGMA\NEWSIST\Componentes\..\\Endoso"
  14. c:\windows\system32\xcopy /y /i /s "y:\compilaciones\Endoso\*.qry" "z:\APLSIGMA\NEWSIST\Componentes\..\\Endoso"
  15. c:\windows\system32\xcopy /y /i /s "y:\compilaciones\Endoso\*.bmp" "z:\APLSIGMA\NEWSIST\Componentes\..\\Endoso"
  16. c:\windows\system32\xcopy /y /i /s "y:\compilaciones\Endoso\*.rpt" "z:\APLSIGMA\NEWSIST\Componentes\..\\Endoso"
  17. c:\windows\system32\xcopy /y /i /s "y:\compilaciones\Endoso\*.jpg" "z:\APLSIGMA\NEWSIST\Componentes\..\\Endoso"
  18.  
  19. echo "Desmontando unidades"
  20. net use /delete y: /y
  21. net use /delete z: /y
  22. ______________________________________________________________
  23.  
  24. C:\PsExec64.exe \\sgv1057 -u RSACL\sisjenkins -p %PWD% /accepteula -h cmd /h "H:\fuentes\compila-generico.bat H:\compilaciones\Endoso Endoso 10.140.129.20 H:\APLSIGMA\NEWSIST\Componentes"
  25.  
  26.  
  27. \\SGV1057\h$\fuentes\cl\treshtp\rsa\compilaciones
  28.  
  29. C:\PsExec64.exe \\sgv1057 -u RSACL\sisjenkins -p %PWD% /accepteula -h cmd /h "H:\fuentes\compila-generico2.bat H:\compilaciones\Endoso Endoso 10.140.129.20 H:\APLSIGMA\NEWSIST\Componentes"
  30.  
  31.  
  32. C:\PsExec64.exe \\sgv1057 -u RSACL\sisjenkins -p %PWD% cmd /h h:\fuentes\compila-generico2.bat "h:\compilaciones\Endoso Endoso 10.140.129.20 h:\APLSIGMA\NEWSIST\Componentes"
  33.  
  34. ___________________
  35. Pages:
  36. https://stackoverflow.com/questions/11935695/how-to-execute-a-windows-command-on-a-remote-pc
  37. https://ss64.com/nt/winrs.html
  38. https://support.solarwinds.com/SuccessCenter/s/article/Connecting-to-remote-server-failed-with-the-message-WinRM-cannot-complete-the-operation
Advertisement
Add Comment
Please, Sign In to add comment