본문 바로가기
Infra/(CI) Jenkins

Jenkins with Android Build

by 화뉘 2018. 11. 21.

Inject environment variables to the build process

ANDROID_HOME=/Users/dhdev/Library/Android/sdk

EMAILS=...

API_KEY=.

BUILD_SECRET=.

Build

cd ${WORKSPACE}/Project/

pwd

rm -f notes.txt

touch notes.txt

#rm -f note.txt

#touch note.txt

./gradlew assembleGooglePlayStoreDev -x lint 

After Build

echo ${GIT_BRANCH}-${GIT_COMMIT} >> Project/notes.txt

date +"%Y-%m-%d %H:%M:%S" >> Project/notes.txt

echo "<CHANGELOG>" >> Project/notes.txt

#sed '1,1d' dailyHOTEL/note.txt >> Project/notes.txt

git log --pretty=%s -1 >> Project/notes.txt

echo "</CHANGELOG>" >> Project/notes.txt 


'Infra > (CI) Jenkins' 카테고리의 다른 글

[Jenkins] Plugin Error  (2) 2021.02.02
Jenkins with iOS Build  (0) 2018.11.21
JIRA Issue List filter  (1) 2017.07.24
Jenkins Project 마다 permission 설정  (0) 2017.02.10
Jenkins 특정 Branch Build 하고 싶을 경우 설정  (0) 2017.01.06

댓글