Add Jenkinsfile
All checks were successful
Firka/firka/pipeline/head This commit looks good

This commit is contained in:
4831c0 2025-04-09 22:14:08 +02:00
parent 40111921e7
commit bdd5413b7e
Signed by: 4831c0
GPG Key ID: 3F97EDDF98E45AA4

55
Jenkinsfile vendored Normal file
View File

@ -0,0 +1,55 @@
pipeline {
agent any
stages {
stage('Clone firka') {
steps {
script {
sh 'rm -rf src && git clone --recursive https://git.qwit.cloud/firka/firka.git src'
}
}
}
stage('Make work dir') {
steps {
script {
sh 'mkdir -p work'
}
}
}
stage('Make cache dir') {
steps {
script {
sh 'mkdir -p cache'
}
}
}
stage('Clone builder') {
steps {
git url: 'https://git.qwit.cloud/firka/firka-builder.git', branch: 'main'
}
}
stage('Build firka') {
steps {
dir('firka-builder') {
sh 'docker compose up --build --exit-code-from firka-builder'
}
}
}
}
post {
success {
archiveArtifacts artifacts: 'work/firka/build/app/outputs/apk/release/app-release.apk', fingerprint: true
}
always {
script {
sh 'pwd && docker compose down'
}
}
}
}