This commit is contained in:
parent
40111921e7
commit
bdd5413b7e
55
Jenkinsfile
vendored
Normal file
55
Jenkinsfile
vendored
Normal 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'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user