sc stop {project-name}
choice /t 1 /d n > NUL
choice /t 5 /d n > NUL
rmdir D:\Project\server\{project-name}\webapps\ROOT /S /Q
choice /t 3 /d n > NUL
mkdir D:\Project\server\{project-name}\webapps\ROOT
choice /t 3 /d n > NUL
cd /D D:\Project\server\{project-name}\webapps\ROOT
choice /t 1 /d n > NUL
mklink /D upload D:\Project\server\{project-name}\webapps\upload
copy C:\Windows\System32\config\systemprofile\.jenkins\workspace\{project-name}\target\dev.war D:\Project\server\{project-name}\webapps\ROOT\ROOT.war
choice /t 3 /d n > NUL
jar xf D:\Project\server\{project-name}\webapps\ROOT\ROOT.war
choice /t 3 /d n > NUL
del D:\Project\server\{project-name}\webapps\ROOT\ROOT.war
sc start {project-name}
'Build&Deployment&CI > Jenkins' 카테고리의 다른 글
[Jenkins] 윈도우 Excute shell 샘플 (0) | 2017.08.30 |
---|