본문 바로가기
반응형

IT228

유용한 젠킨스 플러그인 CloudBees Folder Properties 폴더 형식으로 Job 관리 (보통 기본으로 설치되어 있음) Environment Injector Job에 변수 사용 (Folder Properties 설치할 때 같이 설치됨) Folder Properties 폴더에 변수 사용 (상속화된 변수 사용) 폴더의 설정에서 아래와 같이 추가해주고 Job에서 Folder Properties를 활성화 합니다. Dashboard View 모든잡 한눈에 볼 수 있는 대시보드 설정 Publish Over SSH sftp로 artifact 전송 플러그인 설치 후 Jenkins관리 > System > Publish Over SSH > SSH Server 로 이동하여 sftp접속정보 설정 Job 설정 Slack Notificat.. 2024. 3. 6.
맥 homebrew jenkins 설치/재설치 brew를 통한 작업내용이 진행됩니다. brew 설치는 brew 공식 홈에서 제공하는 안내에 따라 준비 하시면 됩니다. 만약 재설치 라면 아래 완벽삭제 방법 먼저 진행하시면 되고, 새로 설치하시는 거면 완벽삭제 건너뛰고 설치부터 보시면 됩니다. 완벽삭제 일반버전의 jenkins $ brew remove jenkins $ brew cleanup $ brew uninstall jenkins --force $ brew cleanup $ sudo rm -rf /var/root/.jenkins ~/.jenkins lts 버전의 jenkins $ brew remove jenkins-lts $ brew cleanup $ brew uninstall jenkins-lts --force $ brew cleanup $ su.. 2024. 3. 6.
Jenkins에서 Unity3D 빌드 방식 두 가지 Unity3d plugin 사용 Dashboard > Jenkins 관리 > Tools 에서 유니티 설치경로를 셋팅 Job pipeline에서의 설정 -quit -batchmode \ -projectPath "${WORKSPACE}/Client" \ -logFile "${WORKSPACE}/editor_build.log" \ -executeMethod BuildScript.BuildApp_Android shell script 사용 RUN_UNITY="/Applications/Unity/Hub/Editor/2022.3.13f1-arm64/Unity.app/Contents/MacOS/Unity" LOG_FILE="${WORKSPACE}/editor_build.log" touch $LOG_FILE "$RUN_.. 2024. 2. 26.
Ubuntu에서 커맨드로는 괜찮은데 Jenkins에서만 systemctl 명령을 실행하지 못할 때 젠킨스에서 서비스를 중지, 재시작 하는 명령을 실행시키면 아래와 같은 오류가 발생합니다. a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper 젠킨스에서 특정 서비스를 실행하는것에는 방화벽에 의한 포트 문제등 다른 이유야 많겠지만 위 현상은 그냥 특정 유저가 특정 명령어를 실행할 때 sudo 의 비밀번호를 묻지 않도록 설정해서 이를 해결할 수 있습니다. 젠킨스 shell에서 아래 커맨드 추가해서 sh 실행주체와 systemctl 경로 확인 whoami which systemctl sudoers 편집 sudo visudo /etc/.. 2024. 2. 16.
반응형