Inject environment variables to the build process

API_KEY=.

BUILD_SECRET=.

EMAILS=.

Build

 #!/bin/bash -l

cd ${WORKSPACE}

#ruby ../build.rb

rm -rf build

mkdir build

touch build/notes.txt

#touch build/note.txt

xcodebuild archive -workspace project.xcworkspace -scheme project -configuration Debug -archivePath build/project.xcarchive | xcpretty

xcodebuild -exportArchive -archivePath build/project.xcarchive -exportOptionsPlist exportOptions.plist -exportPath build | xcpretty

After Build

Archive the artifacts

 build/project.ipa

execute scripts

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

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

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

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

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

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

./Pods/Crashlytics/submit $API_KEY $BUILD_SECRET -ipaPath build/project.ipa  -emails $EMAILS -notifications YES -notesPath build/notes.txt -debug YES 


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

Jenkins with iOS Build  (0) 2018.11.21
Jenkins with Android Build  (0) 2018.11.21
JIRA Issue List filter  (0) 2017.07.24
Jenkins Project 마다 permission 설정  (0) 2017.02.10
Jenkins 특정 Branch Build 하고 싶을 경우 설정  (0) 2017.01.06

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 with iOS Build  (0) 2018.11.21
Jenkins with Android Build  (0) 2018.11.21
JIRA Issue List filter  (0) 2017.07.24
Jenkins Project 마다 permission 설정  (0) 2017.02.10
Jenkins 특정 Branch Build 하고 싶을 경우 설정  (0) 2017.01.06

AS-IS

Android

iOS

TO BE


'직장들 > Daily' 카테고리의 다른 글

Jenkins Client & QA Jobs  (0) 2018.11.16
Client Release Process Before & After  (0) 2018.11.15
사내 Agile Process  (0) 2018.11.15
Server Release Process  (0) 2018.11.15
Client QA Process  (0) 2018.11.15
SOAPUI를 이용한 API Test Automation  (0) 2018.11.14

소스코드 관리의 Repositories의 아래와 같이 설정


Source Code Management

 Git    
    Repositories    


 Advance

Name: ref
Refspec : +refs/tags/*:refs/remotes/origin/tags/* 

 Branches to build  
 Branch Specifier (blank for 'any') : v0.9.5.2


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

Jenkins with iOS Build  (0) 2018.11.21
Jenkins with Android Build  (0) 2018.11.21
JIRA Issue List filter  (0) 2017.07.24
Jenkins Project 마다 permission 설정  (0) 2017.02.10
Jenkins 특정 Branch Build 하고 싶을 경우 설정  (0) 2017.01.06

+ Recent posts