Skip to content

Instantly share code, notes, and snippets.

@geunho
Last active March 27, 2019 02:00
Show Gist options
  • Save geunho/a64a426227633df7568d11b0f9cc651f to your computer and use it in GitHub Desktop.
Save geunho/a64a426227633df7568d11b0f9cc651f to your computer and use it in GitHub Desktop.
Jenkins Master Active/Passive 동기화 - Windows

흔치 않은 경우겠으나, 윈도우 서버에서 Jenkins Master를 구동하는 경우, Active -> Passive로 동기화 방법을 설명한다.

REM 심볼릭 링크에 Remote to remote로 접근할 수 있도록 설정
REM (아래 설정 안해주면 심볼릭 링크에서 오류를 뿜어낸다)
fsutil behavior set SymlinkEvaluation R2R:1 

REM JENKINS_HOME 폴더 동기화
robocopy %LOCAL_ACTIVE_JENKINS_HOME_DIR% %REMOTE_PASSIVE_JENKINS_HOME_DIR% /MIR 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment