GitLab CI
You can add an extra stage to your existing GitLab CI/CD pipeline to upload a build to MobileBoost.
Here is an example .gitlab-ci.yml
configuration in which an additional job uploads a build file to MobileBoost:
stages:
- build
- upload
build_job:
stage: build
script:
- echo "Building the project..."
# Build your project and generate the build file
- export BUILD_FILE_PATH=path/to/your/build_file.apk
upload_job:
stage: upload
script:
- echo "Uploading the build..."
- >
call=$(curl -i -X POST \
-H "Content-Type: multipart/form-data" \
-F "build=@${BUILD_FILE_PATH}" \
-F "organisation_key=<ORG_KEY>" \
-F "platform=<platform>" \
-F "metadata={}" \
https://api.mobileboost.io/uploadBuild/);
buildId=$(echo "$call" | awk '/^{/ {print}' | jq -r '.buildId')
echo "MobileBoost buildId: ${buildId}"
Last updated