Jenkins auto build apk/ipa

Matt
Environment
1. docker jenkins..
2. docker build Env..
$docker compose up -d
After install Jenkins...
change Jenkins admin password..
install plugins...
$docker ps -a
$docker exec hijenkins cat /var/jenkins_home/secrets/initialAdminPassword
$docker exec -it hislave_ionic bash
and Little Concept about Docker...
Jenkins Concept..
Master vs Slave
checkout from remote VCS
Pipe Line
What is Pipeline
pipeline {
agent any
stages {
stage('Build') {
steps {
echo 'Building..'
}
}
stage('Test') {
steps {
echo 'Testing..'
}
}
stage('Deploy') {
steps {
echo 'Deploying....'
}
}
}
}
Real Case demo..
1. GUI options..
2. check out from VCS
3. find JenkinsFile
4. start run JenkinsFile..
In JenkinsFile...
Find agent (Label Name)
step1: custom checkout
step2: run node.js script
step3: Build apk named by buildTag Number
Build Script
- Android
./gradlew clean assembleDebug
xcodebuild archive -scheme Project_Scheme -target Project_Target
-archivePath ~/Desktop/project.xcarchive
xcodebuild -exportArchive -archivePath ~/Desktop/project.xcarchive
-exportOptionsPlist exportOptions.plist
-configuration Debug -exportPath ~/Desktop/
Archive
Export Archive (ipa)
- iOS
+ Line Bot !
Jenkins auto build apk/ipa
By Matt Jhou
Jenkins auto build apk/ipa
- 356