블로그 이미지
Every unexpected event is a path to learning for you.

카테고리

분류 전체보기 (2731)
Unity3D (814)
Programming (474)
Server (33)
Unreal (4)
Gamebryo (56)
Tip & Tech (228)
협업 (57)
3DS Max (3)
Game (12)
Utility (136)
Etc (96)
Link (32)
Portfolio (19)
Subject (90)
iOS,OSX (51)
Android (14)
Linux (5)
잉여 프로젝트 (2)
게임이야기 (3)
Memories (20)
Interest (38)
Thinking (38)
한글 (30)
PaperCraft (5)
Animation (408)
Wallpaper (2)
재테크 (18)
Exercise (3)
나만의 맛집 (3)
냥이 (10)
육아 (16)
Total
Today
Yesterday
03-29 00:00

[링크] https://allonsyit.tistory.com/90

 

[Jenkins] 젠킨스로 정기 작업 실행하기 / 스케줄 설정

# 젠킨스 스케줄 설정 1. 프로젝트 구성 -> 빌드 유발 -> Build periodically 선택 2. Schedule 에 크론 형식으로 시간 설정 0 8 * * * 입력 시 아래에 H 8 * * * 을 권장한다 0 8 * * * : 오전 8시 정각 H 8 * * * : 8시

allonsyit.tistory.com

 

반응형
Posted by blueasa
, |

Jenkins에서 두 브랜치를 매일 자동으로 Merge 하려고 찾아보면서 삽질하고 정리해 둠.

shall script로 해야되는건가 했는데 의외로 Jenkins에 관련 메뉴가 다 있는 것 같다.

Jenkins 메뉴로 git merge(소스 코드 관리-Merge before build 메뉴) 하고, git origin에 push(빌드 후 조치-Git Publisher 메뉴)까지 처리함.

 

----

 

To implement this task you can follow the below given steps.

  • Set your GitHub repo with credentials.

 

 

  • After that you have to set your branch name to merge. Go to source code management->Additional Behaviours->Merge before build.

 

 

  • Set your user name and user email. Go to source code management->Additional Behaviours->Custom user name and email.

 

 

Now your job is ready to merge your branch. You can also go through the below GitHub link to get more information.

https://github.com/nadim70/Newproject.git

 

GitHub - nadim70/Newproject

Contribute to nadim70/Newproject development by creating an account on GitHub.

github.com

 

 

[출처] https://www.edureka.co/community/68544/how-to-merge-two-branch-in-github-using-jenkins

 

How to merge two branch in GitHub using jenkins

Hi Everyone, I want to merge two branch in GitHub using jenkins. But I am not able to do this task. Can anyone help me to implement this task?

www.edureka.co

 

[참조] https://osc131.tistory.com/89

 

[jenkins] GIT Publisher

[jenkins] GIT Publisher 작성일자 : 2018년 10월 20일환경 : Jenkins 2.129, JDK 1.8.0_101목표 : Jenkins Build 작업 진행 후 Build에 사용됐던 GIT 버전을 Tags로 저장 ( 일종의 백업 ) * Jenkins - Git 연동 설정 및 GIT Plugin 설

osc131.tistory.com

 

반응형
Posted by blueasa
, |

[Error Log]

ERROR: Build step failed with exception
org.jenkinsci.plugins.scriptsecurity.scripts.UnapprovedUsageException: script not yet approved for use

----

To get around this, go to:
Jenkins -> Manage Jenkins -> In-process Script Approval

 

 

반응형
Posted by blueasa
, |

gradle을 Unity 2021 기본인 gradle plugin 4.0.1에서 gradle plugin 4.2.0으로 변경하고 나서

Unity Editor에서는 빌드가 잘되는데 이상하게 jenkins Android 에서만 빌드가 실패해서 삽질하면서 알아보니

jenkins를 Mac에 셋팅해뒀는데 gradle cache 폴더가 뭔가 꼬인 것 같다.

아래와 같은 Warning Log가 엄청나게 뜬다.

 

[Warning Log]

WARNING:/Users/{UserAccount}/.gradle/caches/transforms-2/files-2.1/ea30c3c071cd48c926311878c13eb08b/jetified-unity-classes.jar: D8: Expected stack map table for method with non-linear control flow.

 

그래서 아래 위치의 gradle cache 하위 있는 것들을 모두 삭제하고 새로 빌드를 실행해서 잘 돌아가는 것을 확인했다.

 

[Mac gradle cache 위치] /Users/{UserAccount}/.gradle/caches/

 

[참조] https://blueasa.tistory.com/2769

 

[플러그인] GoogleMobileAds 8.6.0(with Unity2021)

Unity 2021.3.32f1 GoogleMobileAds 8.6.0 Firebase SDK 11.6.0 ---- [추가] gradle을 Unity 2021 기본인 gradle plugin 4.0.1에서 gradle plugin 4.2.0으로 변경하고 나서 Unity Editor에서는 빌드가 잘되는데 이상하게 jenkins Android 에

blueasa.tistory.com

 

반응형
Posted by blueasa
, |

[Jinkins 빌드에러] ERROR: Timeout after 10 minutes

----

 

젠킨스 빌드를 실행하다보니 위와같은 에러가 뜬다.

프로젝트를 삭제하고 새로 받게 하려 했더니 용량이 커져서 10분이 넘어가나보다..

 

찾아보고 아래의 경로에 checkout과 clone 2개의 behaviours를 추가하고 timeout 시간을 60분으로 잡아줬다.

(0을 넣으면 무제한이 되지 않을까 싶었는데 1 이상의 값을 넣으라고 에러를 뱉어낸다)

 

- Jenkins 관리 > {My Project} > 구성 > 소스 코드 관리 > Git > (하단)Add > Advanced checkout behaviours > Timeout (in minutes) for checkout operation > 60(min)

- Jenkins 관리 > {My Project} > 구성 > 소스 코드 관리 > Git > (하단)Add > Advanced clone behaviours  > Timeout (in minutes) for clone and fetch operations > 60(min)

 

 

[참조] https://sonseungha.tistory.com/608

 

[Jenkins] Clone / Checkout Timeout 에러 처리

Jenkins에서 Git plugin을 사용하여, github의 프로젝트를 clone / check 시 timeout 에러가 발생하는 경우가 있다. Pull Request를 가져와 Jenkins에서 파이프라인을 수행하려할 때 아래와 같이 에러가 발생한다면

sonseungha.tistory.com

 

 

반응형
Posted by blueasa
, |

[LInk] https://plugins.jenkins.io/build-failure-analyzer/

 

Build Failure Analyzer

Jenkins Build Failure Analyzer. This plugin scans build logs and other files in the workspace for recognised patterns of known causes to build failures, and displays them on the build page for quicker recognition of why the build failed.

plugins.jenkins.io

 

[Failure Cause Setting]

 

[Pattern]

.*.: error CS.*

 

 

 

반응형
Posted by blueasa
, |

[링크] https://magnuxx.tistory.com/entry/jenkins-job-%EB%B3%B5%EC%82%AC%EC%83%88%EB%A1%9C%EC%9A%B4-item-%EB%B3%B5%EC%82%AC

 

jenkins job 복사(새로운 item 복사)

jenkins에서 새로운 Item을 만들때 기존에 만들어진 job 또는 템플릿이 필요하다고 느꼈다. github연동이라던지 각종 설정을 그대로 복사한 상태에서 새로만들어진 job만의 내용을 살짝 수정하길 원했

magnuxx.tistory.com

 

 

반응형
Posted by blueasa
, |

[링크] https://recordsoflife.tistory.com/1002

 

Jenkins 작업을 복제하는 방법

1. 개요 이 사용방법(예제)에서는 Jenkins 작업을 복제하는 방법을 배웁니다. 작업 복제는 해당 구성을 부분적으로 또는 전체적으로 재사용하려는 경우에 유용합니다. 소스 트리가 다른 다양한 예

recordsoflife.tistory.com

 

 

반응형
Posted by blueasa
, |

Windows SourceTree에서 Merge 하는 중에 Conflict가 발생하고나서,

Resolve using Theirs 혹은 Resolve using Mine을 선택해도 제목과 같은 에러를 내면서 해결이 되지 않는다.

 

인터넷 검색해보니 Conflict 난 리스트 중에 삭제된 파일이 있어서 제대로 해결이 되지 않는 것 같다.

 

아래 [참조] 링크의 해결방법은 간단히 보면 아래와 같다.

 

[해결방법]

1) Conflict 난 리스트 전체 선택 후, '삭제(Remove)'.

2) 1)에서 '삭제(Remove)'해도 리스트는 여전히 Conflict 난 상태로 보인다.(우측 diff에서는 충돌난 정보가 사라짐)

3) 2)의 상태에서 그대로 'Mark as resolved'를 해서 Conflict 정보를 Commit/Push 하고 종료 시킨다.

 

[추가]

내 경우는 3)을 하고 해결이 된 것 같아 보이지만 소실된 파일들이 있었다.

새로 Merge를 해도 Resolved를 시켜버려서 그런지 갱신된 정보가 없어서 Merge 할 게 없는걸로 보인다.

별 수 없이 별도로 파일을 추가해서 다시 Commit/Push 시켰다.

 

[참조] https://stackoverflow.com/questions/53227144/cannot-resolve-conflictsapplication-is-locking-files

 

Cannot resolve conflicts(application is locking files)

I am trying to pull from another branch into mine, and I get merge errors. When I try to resolve them, I get this error from SourceTree: "Could not update one or more files, please check that no ot...

stackoverflow.com

 

반응형
Posted by blueasa
, |

[링크] https://mentum.tistory.com/421

 

소스트리 git 대소문자 변경 인식시키기

오른쪽 위의 터미널을 열어서 git config core.ignorecase false 를 입력. 이후 새로고침을 해보면 대소문자가 변경되도 인식된다. 해당 세팅은 컴퓨터 마다 따로 설정해야 함.

mentum.tistory.com

 

반응형
Posted by blueasa
, |