Automation of building .pcg file

Solved
PM
Peter Margetiak
PROSOFT, spol. s r.o.

I am looking for some way how to automate building of multiple .pcg files for our use-case - for us ideal is to integrate it into Jenkins where the whole project and all apps are automatically compiled.

Does SOTI's MobiControl Package Studio plan to provide (OR provide but in documentation I found nothing about it) any way of automatiion e.g. command line building access? In my opinion it is interesting, possible and nice to have feature for lots of people here.

Thanks for information.

7 years ago
SOTI MobiControl
ANSWERS
G
GMod@SOTI
7 years ago

Hi Peter, 

Thank you for the detailed explanation. 
I spoke with a few members of the team they would recommend you log a support case and place a Feature Request for this integration as this is currently not supported.

You can use this link to log a support case: http://www.soti.net/services/support/supportcase/

You can link to this to provide the agent with the use case scenario and discussion thread so that they may add it to the request:

https://discussions.soti.net/thread/automation-of-building-pcg-file/

Regards,
~G

Solution
G
GMod@SOTI
7 years ago

Hi Peter,

Can you describe the details of the use case and/or how you would like this feature implemented?

Currently, it is not possible to build packages using command lines via Package Studio but we may be able to place a feature request for that. 

Regards,

~G

PM
Peter Margetiak
7 years ago (edited 7 years ago)

Hi GMod,

my use-case is for fully automation scenario. Simple - we need some command line with arguments approach to compile .pcg file.

0. Create project in MobiControl Package Studio, set all Project properties & add all required files for compilation

1. Export config file with Project properties (e.g. INI, XML which we will understand) and files with additional attributes (again INI, XML which we will understand)

2. When we update our application, we modify required files and config file (Version string) 

3. Execute cmd script to build new package e.g.

MCStudio.exe. -in properties.xml file1 file1_attributes.xml file2 file2_attributes script script_attributes -out compiled.pcg

This step is working:

4. via API upload newly created package to SOTI server

P.S. API is really great, keep good work ;) 

With regards,

Peter

PM
Peter Margetiak
7 years ago

Hi ~G,

I have written both: Support case and Feature request and will wait.

Thanks for help :-)

Peter

PM
Peter Margetiak
7 years ago

Just for community information - to automate process SOTI has cmd utility which can be used for compiling package.

The MCP file is configuration file which can be simple opened and modified to our needs.

RC
Raymond Chan Diamond Contributor
7 years ago

Where can the command line utility be downloaded?

S
Saro
7 years ago

Any chance you can share more information on this utility? I'm also a developer that will benefit from this workflow tremendously.

MD
Matt Dermody Diamond Contributor
7 years ago

Yes please share!

PM
Peter Margetiak
7 years ago (edited 7 years ago)

I have already ask the person who sent me the cmd line utility about sharing and we will see.

I will share it if I got approval from utility owner without problem.

PM
Peter Margetiak
7 years ago (edited 7 years ago)
CB
Chris Baigent
6 years ago

Sorry to revive a dead thread, but does anyone know if there's any documentation around the syntax of generating a .mcp file?

I tried writing a script to produce multiple packages for different javascript configuration files based on different locations. It appeared to work, but when I apply a package to a device it doesn't push out the configuration file.

I suspect its to do with the values of the total file size and total package size being incorrect. I'm unsure how to calculate this as when I tried to reverse engineer it, the byte size doesn't match. I.e. if I look at a working package, TotalFileSize = 562, the actual file size = 548.