Go to the Jenkins configuration page and scroll down to the Studio Snapshot section.
Specify the file paths to XStudio.exe and a license file on Jenkins host machine.
If you installed Turbo Studio using default settings, XStudio.exe can be found in the C:\Program Files (x86)\Turbo.net\Turbo Studio 16 folder.
Optionally, you may want to change the default virtual machine used to take snapshots. Boxes are downloaded from Vagrant’s Atlas Service. The list of boxes is available here.
Create the Build Project
Go to the Jenkins dashboard and create a new Turbo Project. Name it FL Studio Snapshot and click OK.
Create a PowerShell script file which downloads the latest FL Studio installer. You can copy the code snippet below.
Optionally, the script may create an image.txt file in the current working directory. The file should contain the name of the output image. It is considered a best practice to include a product version. In the sample code below the product version is extracted from file attributes.
Save the script file on the Jenkins host machine and execute it in a build step.
To add a build step, use the Execute Windows batch command option.
Specify the following command in the build step configuration.
powershell.exe -File "path_to_the_script"
Next, add a build step Take Studio snapshot and setup it in the following way.
Select the Generate using template option for installation script.
Specify /S to force a silent install.
Select the Ignore exit code checkbox.
Use a Fixed startup file set to @PROGRAMFILESX86@\Image-Line\FL Studio 12\FL.exe. For most applications, the default startup file selection made by Turbo Studio is sufficient.
Optionally, select the Overwrite checkbox if you want Jenkins to continue the build in case an image with the same version is already available in the Turbo.net Hub. Otherwise, the build will be aborted.
Save the build project and go back to the main Jenkins dashboard.
Trigger the Build
Open the context menu next to project name and click Build Now.
The build should finish in approximately half an hour. The FL Studio image will be saved in a local repository. If you want to publish it to the Turbo Hub, simply add the build steps Login to Turbo Hub and Push Turbo image.
Your snapshot build is now completely automated!
To create build projects for other applications, specify the appropriate set of silent install arguments and modify the PowerShell script to download the installer for that application.
Be sure to follow @turbohq for the latest tips and tricks or to ask any questions. If you need more help, email us at email@example.com.