Update Jenkinsfile
Some checks failed
Firka/firka/pipeline/head There was a failure building this commit
Some checks failed
Firka/firka/pipeline/head There was a failure building this commit
This commit is contained in:
parent
0a7fae9ed5
commit
f5b50cf89b
52
Jenkinsfile
vendored
52
Jenkinsfile
vendored
@ -16,46 +16,10 @@ pipeline {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('Make work dir') {
|
|
||||||
steps {
|
|
||||||
script {
|
|
||||||
sh 'mkdir -p work'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
stage('Make cache dir') {
|
|
||||||
steps {
|
|
||||||
script {
|
|
||||||
sh 'mkdir -p cache'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
stage('Clone builder release') {
|
|
||||||
when {
|
|
||||||
branch 'main'
|
|
||||||
}
|
|
||||||
steps {
|
|
||||||
git url: 'https://git.qwit.cloud/firka/firka-builder.git', branch: 'release'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
stage('Clone builder debug') {
|
|
||||||
when {
|
|
||||||
not {
|
|
||||||
branch 'main'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
steps {
|
|
||||||
git url: 'https://git.qwit.cloud/firka/firka-builder.git', branch: 'debug'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
stage('Build firka') {
|
stage('Build firka') {
|
||||||
steps {
|
steps {
|
||||||
dir('firka-builder') {
|
dir('src') {
|
||||||
sh 'docker compose up --build --exit-code-from firka-builder'
|
sh 'nix develop -c "./tools/linux/build_apk.sh ' + env.BRANCH_NAME + '"'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -65,7 +29,7 @@ pipeline {
|
|||||||
branch 'main'
|
branch 'main'
|
||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
archiveArtifacts artifacts: 'work/firka/build/app/outputs/apk/release/app-*-release.apk', fingerprint: true
|
archiveArtifacts artifacts: 'src/firka/build/app/outputs/flutter-apk/app-*-release.apk', fingerprint: true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -76,15 +40,7 @@ pipeline {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
archiveArtifacts artifacts: 'work/firka/build/app/outputs/apk/debug/app-debug.apk', fingerprint: true
|
archiveArtifacts artifacts: 'src/firka/build/app/outputs/flutter-apk/app-debug.apk', fingerprint: true
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
post {
|
|
||||||
always {
|
|
||||||
script {
|
|
||||||
sh 'pwd && docker compose down'
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -3,6 +3,6 @@
|
|||||||
cd firka
|
cd firka
|
||||||
|
|
||||||
flutter gen-l10n --template-arb-file app_hu.arb
|
flutter gen-l10n --template-arb-file app_hu.arb
|
||||||
git branch | grep '*' | grep dev >/dev/null \
|
echo $1 | grep main >/dev/null \
|
||||||
&& flutter build apk --debug --target-platform android-arm,android-arm64,android-x64 \
|
|| flutter build apk --debug --target-platform android-arm,android-arm64,android-x64 \
|
||||||
|| flutter build apk --release --tree-shake-icons --split-per-abi --target-platform android-arm,android-arm64
|
&& flutter build apk --release --tree-shake-icons --split-per-abi --target-platform android-arm,android-arm64
|
||||||
|
Loading…
x
Reference in New Issue
Block a user