Different ways of setting Squish installation path

Last edited on

With Squish plug-in for Jenkins there are multiple ways to configure Jenkins to point where Squish is installed.

Single default installation path

When all Jobs running at all Slaves are using the same Squish installation path then we can set this path in Jenkins global system configuration. Go to Manage Jenkins -> Configure System and set “Default installation path”.

In Job configuration in Squish Build Step in Config field enter “Default” or leave this field empty.

Multiple installation paths

If you're using more than one Squish installation or want to configure a different Squish installation path for different Jobs, then this can be done in the “Advanced configuration”. Each entry must consist of a key pointing to an absolute Squish path i.e. squish601/squishPath=/Users/tomasz/Desktop/Squish/squish-6.0.1-qt48x-macx86_64

Manage Jenkins -> Configure Systems -> Squish section

In Job configuration in Squish Build Step in Config field enter previously defined keyword (i.e. squish601).

Squish Job Configuration

Dynamic installation path

In order to have full flexibility we don't have to pre-set fixed Squish installation path in Jenkins Configuration and use environment variable for that purpose. With this solution we can set Squish location per Job, per Slave or even dynamically set during Job execution taking advantage of environment variables handling in Jenkins. Of course any environment variable name can be used.

Manage Jenkins -> Configure Systems -> Squish section

In Job configuration in Squish Build Step in Config field enter “Default” or leave this field empty.

Squish Job Configuration

Next to set environment variable for given Job or for given Slave you are free to use any Jenkins plug-in designed for environment variables handling (i.e. Environment Injector Plugin).

Of course environment variables can be also used in Advanced Configuration Section in Jenkins Configuration (Squish section)