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 d289b57
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@ pipeline {
}
}

parameters {
text(
name: 'UPLOAD_APK',
defaultValue: '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,18 @@ pipeline {
}
}
}

stage('Upload APK') {
if (params.getOrDefault('UPLOAD_APK', 'false').toBoolean()) {
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 d289b57

Please sign in to comment.