Export to .aimmspack from Azure DevOps pipeline

  • 8 December 2020
  • 6 replies

Is it possible to export an AIMMS model to .aimmspack file from Azure Devops Pipeline?

Goal is to generate the .aimmspack file from the Azure Devops Pipeline after the model source files have changed.  

I was hoping to run aimms.exe --export-to without have a user signed in, or storing the private license files in a public place.

From Documentation:
Through the --export-to option you can instruct Aimms to create an encrypted end-user project either packed to the .aimmspack file specified, or unpacked into a specified folder. When using this commandline option, Aimms will use the export settings as saved by the previous call to the File-Export End-User Project menu. You can use this commandline option, for instance, within the context of a continuous integration server, to automate the deployment of your Aimms application after new commits have been pushed to the version control repository managing the project. Specifying the unpack folder When running an .aimmspack file, Aimms will ask for the folder where you want the .aimmspack file to be unpacked. Alteratively, you can already specify the unpack folder through the --unpack-folder commandline option

6 replies

Anyone have any ideas on how to generate aimmspack in CI / CD pipelines?

Userlevel 5
Badge +2

@CarlosOnline , would generating the aimmspack file in git hooks on the local machine and moving that aimmspack file to the desired location on the remote server using your CI/CD pipelines work for you ?

What do you mean by local machine?

We don't want to check in the .aimmspack.

Userlevel 5
Badge +2



By local machine, I mean the machine on which a developer makes changes to the source code. Change source code, commit on local machine - trigger a commit-hook to create the .aimmspack file. The developer then pushes his changes (which includes the new .aimmspack file) to the remote server, which will trigger your CI/CD pipelines. 

We are using Azure DevOps, I don’t see commit-hook feature in Azure DevOps.

Userlevel 5
Badge +2

Hi @CarlosOnline , the idea here is to automate the creation of the aimmspack file in the repo itself (using Git) instead of in the pipelines. So, by the time a pipeline is triggered - the aimmspack file will already be there and your pipeline could contain an action to move this file to the destination location. 

Creation of the .aimmspack file requires the aimms executable and also a license, so it is not possible to have this process part of pipelines which run on remote servers as of now. 


Hooks are a git feature and Azure Repos work with Git or TFVC. Which one are you using ? I would expect TFVC to have an equivalent feature as well. Git - githooks Documentation (


The workflow is as below

  1. AIMMS Developer (with a license) makes changes in the project source code on their computer.
  2. Commit their changes with a commit message. 
  3. The git hook script is executed and creates the .aimmspack file.
  4. Push their changes to the remote server.
  5. CI/CD pipeline starts. 

See below example where I configured exportAIMMS.bat as a hook to be run every time I start a commit. As soon as I start the commit process, the exportAIMMS.bat file is executed and it will create the aimmspack of the Model.aimms project. 

We use TortoiseGIT as a UI for git and here’s the configuration. 


All of this will happen client side, on the computer of the person who is making changes to the AIMMS source code. Pipelines will start once they push their changes to the remote server. 

The project and bat file is attached for your reference. 


Didn't find what you were looking for? Try searching on our documentation pages:

AIMMS Developer & PRO | AIMMS How-To | AIMMS SC Navigator