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

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

+ Recent posts