Skip to content

Commit

Permalink
Jenkins: Upload the kolibri APK after built
Browse files Browse the repository at this point in the history
Add a parameter UPLOAD_APK to determine uploading the built Kolibri
Android packages, or not. It chains up kolibri-installer-android-upload
job.

https://phabricator.endlessm.com/T34805
  • Loading branch information
starnight committed Jun 20, 2023
1 parent 438e18f commit 566e6a3
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@ pipeline {
}
}

parameters {
boolean(
name: 'UPLOAD_APK',
default: false,
description: 'Upload the built Kolibri Android packages for internal testers'
)
}

environment {
// URL for the Kolibri wheel to include.
// FIXME: It would be nice to cache this somehow.
Expand Down Expand Up @@ -78,6 +86,19 @@ pipeline {
}
}
}

stage('Upload APK') {
upload_apk = params.getOrDefault('UPLOAD_APK', false).toBoolean()
if (upload_apk) {
echo "Upload the built Kolibri Android packages for internal testers"
build(
job: 'kolibri-installer-android-upload',
parameters: [
string(name: 'RELEASE_NOTES', value: '[]')
]
)
}
}
}

post {
Expand Down

0 comments on commit 566e6a3

Please sign in to comment.