젠킨스 시작

 sudo /etc/init.d/jenkins start

 

 

 

 

터미널, cmd 에서 키 만들기

ssh-keygen

 

 

https://bitbucket.org/ 에서 키 추가

공개 키를 적용 [.pub]

https://bitbucket.org/{you repository}/{you repository}/admin/access-keys/ 

 

Bitbucket | The Git solution for professional teams

Collaborate on code with inline comments and pull requests. Manage and share your Git repositories to build and ship software, as a team.

bitbucket.org

 

젠킨스

bitbucket 플러그인 설치

Git Parameter Plug-In 설치

 

Git Parameter

Adds ability to choose branches, tags or revisions from git repositories configured in project.

plugins.jenkins.io

앱관리 ->

 

이 빌드는 매개변수가 있습니다 -> Git Parameter Plug-In 선택

Parameter Type -> branch or tag 선택

Default Value -> 기본 브랜치[origin/feature , origin/feature, origin/master 등등]

ex) origin/feature

 

소스 코드 관리 -> git -> git@bitbucket.org:{you repository}/{you project}.git

Branch Specifier (blank for 'any') -> 기본브랜치 설정 [*/feature , */origin , */master ]

ex) */feature

 

빌드 유발 -> Build when a change is pushed to BitBucket [체크]

 

Add Credentials

SSH -> 

Enter directly -> 

-----BEGIN OPENSSH PRIVATE KEY-----

sdsdsd....

-----END OPENSSH PRIVATE KEY-----

 

Passphrase : 암호

 

 

fastlane 설치

https://docs.fastlane.tools/getting-started/ios/setup/

 

Setup - fastlane docs

Getting started with fastlane for iOS Setup Xcode for fastlane xcode-select --install Installing fastlane fastlane can be installed in multiple ways. The preferred method is with Bundler. fastlane can also be installed directly through with Homebrew (if on

docs.fastlane.tools

 

-> 프로젝트에 fastlan 셋팅

 

앱설정 -> Build -> Shell executable -> fastlane 빌드 명령어 , ex)fastlane store

저장

gradlew 권한이 없다고 오류나는 경우있다.

 

Shell executable 에 아래 명령어 추가

chmod +x gradlew

 

ex)

export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
export ANDROID_APP_KEYSTORE_PATH="/var/lib/jenkins/workspace/app_test/app/key/keystore.jks"

chmod +x gradlew

fastlane store
bundle exec fastlane store

 

+ Recent posts