Translate

2020년 4월 22일 수요일

Window에 깔린 Jenkins에서 Mac에 있는 Shell script 실행하기

목적


Window에 깔린 Jenkins에서 Mac에있는 Shell script를 실행해야할 필요가 있었습니다. 방법을 찾다보니 저에겐 생소해서 이렇게 글을 적게 되었습니다.

환경


Window10, macOS Catalina 10.15, Jenkins version 2.190.3

Jenkins 설정


SSH Plugin 설치


Jenkins Plugin에 가서 SSH Plugin을 설치합니다.

Credential 추가 


Mac에 실행하기 위해서 Mac의 User ID과 비밀번호를 Jenkins Credential에 추가합니다.
저는 이 링크(https://www.thegeekstuff.com/2016/10/jenkins-git-setup/)를 참고하여 추가했습니다.

SSH Server 설정


Mac에 접속하기 위해 SSH(Secure Shell Protocol) Server를 설정합니다. Mac의 IP를 추가하고 포트를 설정합니다.

Project에서 Execute shell script on remote host using ssh 사용


Project에 Execute shell script on remote host using ssh를 추가하고 build script에 실행하고 싶은 Mac의 Shell script 경로를 확인하여 추가합니다.  저는 이 링크(https://yookeun.github.io/tools/2018/04/14/jenkins-remote/)를 참고하여하여 설정했습니다.

주의점


Jenkins Window Shell 문법과 Mac의 ZSH Shell의 문법은 다릅니다. 그리고 Shell script 문법은 아시다 싶이 상당히 엄격하니 대소문자 띄어쓰기 등 문법을 잘 확인하시어 적용하시기 바랍니다.

참고



2020년 4월 20일 월요일

SVN error - Failed to run the WC DB work queue associated with file

목적


아주 가끔식 svn에서 "Failed to run the WC DB work queue associated with file" 에러가 발생 합니다. CleanUp을 해도 정상적으로 해결이 안됩니다. 가끔 발생하기 때문에 기억하기도 어려워 이렇게 글로 남깁니다.

발생 이유


SVN에 완료되지 않은 작업이 있고 정상적으로 수행할 수 없을 때 발생하는 문제라고 합니다.(https://changilkim.wordpress.com/2012/12/10/svn-cleanup-fails/)

해결 방법


Window 사용시 Batch 파일로 만들어서 사용하면 편할 것 같습니다.

cd {work-dir-base}
sqlite3 .svn/wc.db "delete from work_queue"

참고



  1. https://changilkim.wordpress.com/2012/12/10/svn-cleanup-fails/
  2. https://stackoverflow.com/questions/22362823/failed-to-run-the-wc-db-work-queue-asso


2020년 4월 13일 월요일

UE4 Window PC에 IOS 인증서 등록 방법

  1. 목적 : Window PC에서 Remote 빌드시 Window에 IOS Provisioning 인증서 등록하는 방법을 기록한다. 
  2. 환경 : UE4.22, Window10
  3. 등록 방법
    1. 이전 인증서 제거(존재한다면)
      1. certmgr.msc 에서 예전 인증서를 지운다.(참고 1번 링크 확인)
      2. MMC에서 이전 인증서 제거(참고 2번 링크 확인)
    2. 인증서 등록 
      1. MMC에가서 인증서를 등록한다.(참고 2번 링크 확인)
        1. p12, cer로 끝나는 인증서를 등록해 준다. 
      2. 인증서 화인 
        1. "실행 - certmgr.msc - 개인 - 인증서 선택 후 우클릭 - 모든작업 - 내보내기 - 개인정보 교환 PCS #12 선택" 확인
  4. 참고
    1. https://support.globalsign.com/ssl/ssl-certificates-installation/import-and-export-certificate-microsoft-windows
    2. https://stackoverflow.com/questions/12106011/system-security-cryptography-cryptographicexception-keyset-does-not-exist

홈