Execution Server installation


Warning

In 2.3.0-RELEASE version of the server, we updated Jenkins to 2.190.1 version. Since 2.165 and newer version, Jenkins no longer supports the old (-remoting) mode in either the client or server. If you have installed a 2.3.0-RELEASE of the server and want to install an agent, you need to download 2.3.0-RELEASE (or newer) version of the agent.

Headless install

Linux procedure

Pre-requisites

  • A version of the java 8 jdk must be installed on the system.

  • The bin directory from this JDK must be included in the PATH shell variable. If necessary, run the following command in the shell you’ll be using :

    export PATH=</path/to/the/JDK>/bin:$PATH
    

Procedure

To perform a headless server installation under linux, you need to perform the following steps :

  • Create the installation parameter file.
  • Launch the installer from the command line with the installation paramameter file path as argument.

> Installation parameter file

The parameter file can be generated from the attached template. Please make sure to adjust the following parameters to the real values on your system :

  • jdkPath : Path to a java 8 JDK that will be used to run the server.
  • installPath : Target installation path for the Squash TF server

linux-headless-install-parms-template.xml

> Installer execution

To actually install the Squash TF server, please run the following command :

java -jar <path/to/the/>squash-tf-execution-server-bundle-<version>-linux-installer.jar <path/to/the/xml-installation-parameter-file>

Note

You can now access to your execution server at : <host_url>:8080/jenkins
The default login is : admin / admin

Windows procedure

Pre-requisites

  • A version of the java 8 jdk must be installed on the system.

  • The bin directory from this JDK must be included in the PATH shell variable. If necessary, run the following command in the shell you’ll be using :

    set PATH=<\path\to\the\JDK>\bin;%PATH%
    

Procedure

To perform a headless server installation under linux, you need to perform the following steps :

  • Create the installation parameter file.
  • Launch the installer from the command line with the installation paramameter file path as argument.

> Installation parameter file

The parameter file Can be generated from the attached template. Please make sure to adjust the following parameters to the real values on your system :

  • jdkPath : Path to a java 8 JDK that will be used to run the server.
  • installPath : Target installation path for the Squash TF server
  • programGroup : Title for the Squash TF server submenu.

squash-tf-execution-server-auto-install-windows.xml

> Installer execution

To actually install the Squash TF server, please run the following command :

java -jar <path\to\the\>squash-tf-execution-server-bundle-<version>-win64-installer.jar <path\to\the\xml-installation-parameter-file>

Note

You can now access to your execution server at : <host_url>:8080/jenkins
The default login is : admin / admin


GUI install

Pre-requisites

  • A version of the java 8 jdk must be installed on the system.

  • The bin directory from this JDK must be included in the PATH shell variable. If necessary run the following command in the shell you’ll be using :

    • On Linux :

      export PATH=</path/to/the/JDK>/bin:$PATH
      
    • On Windows :

      set PATH=<\path\to\the\JDK>\bin;%PATH%
      
  • Download the desired installer version of Squash TF Execution Server here

Procedure

  1. Launch the graphical installer by a double click on the Squash TF Execution Server jar file, or launch it with the following command line :

    java -jar <desired-squash-tf-version>.jar
    

    Then you should have the language selection screen :

    ../../_images/step0.png
    • Choose the desired language for the installer then click on OK

  2. The Welcome screen appears :

    ../../_images/step1.png
    • Click on Next

  3. The JDK Path screen appears. This screen allows you to define the path where you java jdk is installed.

    ../../_images/step2.png
    • Choose the path where your jdk is installed.
    • Then click on Next

  4. The Target Path Screen appears. It allows you to define the installation directory.

    ../../_images/step3.png
    • Define the installation directory (or keep the one proposed by default)
    • Then click on Next

  5. The Select Installation Packages appears. It allows you to choose which package you want to install. Currently, you only have the choice to install or not the sahi proxy.

    ../../_images/step4.png
    • Do your choice
    • Then click on Next

  6. The licenses information screen appears. It gives you all the informations concerncing the license of the product embedded

    ../../_images/step5.png
    • Click on Next

  7. The Setup Shortcuts screen appears. It allows you to define your preferences concerning the shortcuts to create.

    ../../_images/step6.png
    • Click on Next

  8. The installation tracking screen appears. This screen show you the progression of the installation.

    ../../_images/step7.png
    • When the installation is finished, click on Next

  9. The Installation Finished screen appears :

    ../../_images/step8.png

    On this screen there is a button Generate an automatic installation script. It offers you to save an xml file which you could use to reproduce the same installation (with the same configuration you chose in the previous screens). See the headless installation procedure for explanations on how do a new installation using this xml file.

    • Then click on Done

Note

You can now access to your execution server at : <host_url>:8080/jenkins
The default login is : admin / admin

Congratulations ! You have installed the Squash TF Execution Server



Docker

With version 2.0.0 and above, Squash TF Execution Server also comes with docker images.
Since version 2.2.0 those images are also available on dockerhub : https://hub.docker.com/r/squashtest/squash-tf-execution-server
However, our images are still available as tarball in our repo (download at squashtest.com).

These images are fully parameterized execution servers ready to be deployed.

Below is the procedure to do so.

  1. Retrieve the Docker image

    >> Retrieve from dockerhub

    docker pull squashtest/squash-tf-execution-server:{version}
    

    where {version} is the downloaded server version.

    >> Retrieve from our artifacts repository

    • Download the Docker image of the execution server here

    • Load the image on your Docker setup with the command :

      docker load -i squash-tf-execution-server.docker.{version}.tar
      

    where {version} is the downloaded server version.

    Load the previously downloaded Docker image.

    Warning

    Do not execute the “docker import” command on the image archive as it will flatten it and result in the loss of all context data such as entry points.

  2. Use the following command to check the correctness of the previous load :

    docker images
    

    On successful load the output looks like :

    Check the correctness of the previous load on your system.

  3. Create a running container of the image using the “docker run” command

    >> Image from dockerhub

    docker run --publish 1234:8080 --name squash-tf-execution-server squashtest/squash-tf-execution-server:{version}
    

    >> Image from our artifacts repository

    docker run --publish 1234:8080 --name squash-tf-execution-server squash/squash-tf-execution-server:{version}
    

    Warning

    The difference between the 2 run command is in the image name. The dockerhub one is squashtest/squash-tf-execution-server:{version}, the other is squash/squash-tf-execution-server:{version}

    • The --publish option binds a port of the physical machine to the one of the soon to be created container. Here it binds the 1234 port of the physical machine to the 8080 port of the container. This is mandatory since the Jenkins installed on the image will listen to the 8080 of the container. If a Master/Slave architecture is planned you can open as many tcp port of the container as you wish by repeating the –publish option.
    • The --name option is optional, but quite handy since it allows one to give a non arbitratry name to the container about to be be created.
    Create and run the docker container.

Note

You can now access to your execution server at : <host_url>:<host_bound_port>/jenkins
The default login is : admin / admin

Congratulations ! You now have a Squash TF Execution Server running inside a Docker container and ready to execute its first tests.



Once the container is properly created and running, use the docker stop command to shut it down :

docker stop squash-tf-execution-server

Use the docker start command to restart your server properly and retain your previous configuration and non-volatile data :

docker start squash-tf-execution-server