There's a new home for Articles. Find Articles on Our Product Support Page.
Hello everyone, I'm looking to integrate SOTI MobiControl into our DevOps pipeline, specifically aiming to implement CI/CD by uploading an APK file via the POST /packages API. Unfortunately, I've been stuck for several days now and could really use your help. Here's my current script: #!/bin/bash# Fetching the APKcurl -u [USERNAME]:[PASSWORD] -o "/home/[USERNAME]/app_name.apk" "https://nexus.example.com/repository/raw/apk/env_dev/release/app_name.apk"# Setting base variablesbase_url="https://soti.example.com/MobiControl/api"auth="Basic [BASE64_ENCODED_CREDENTIALS]"content_type="multipart/related"content_type2="multipart/related; boundary=content"apk_path="/home/[USERNAME]/app_name.apk"# Getting access tokenaccess_token=$(curl -s -X POST "$base_url/token" \ -H "Authorization: $auth" \ -H "Content-Type: $content_type" \ -d "grant_type=password&username=[USERNAME]&password=[PASSWORD]" \ | jq -r '.access_token')echo "Access Token: $access_token"# Sending application download request to MobiControlcurl -X POST "$base_url/packages" \ -H "Authorization: Bearer $access_token" \ -H "Content-Type: $content_type2" \ -d @- <<EOF--contentContent-Type: application/vnd.android.application.metadata+json{ "DeviceFamily" : "AndroidPlus", "PackageName": "package", "PackageVersion": "1.0"}--contentContent-Type: application/vnd.android.applicationContent-Disposition: attachment; filename="app_name.apk"--content--EOF However, the server returns the following message: "Internal Server Error". For your information, I'm using version: 2024.0.1.1020.Any help would be greatly appreciated!
We're using Azure DevOps and App Center When testing and deploying our apps, now we're looking for a way to automate the process of deploying our apps to our MobiControlled devices. Has anyone tried this? I'd imagine I would maybe have to use the Soti API to update the package but I'm not sure if there is a better way.
Top-tier experts who are delivering outstanding content. Should have more than 7000 points.
Experts who are consistent with great content. Should have more than 1000 points
Highly experienced members with valuable inputs. Should have more than 700 points
Beginners taking the initiative. Should have more than 500 points