# 9.5 - Continuous Integration

Continuous Integration — Knowledge Base articles.

# Continuous Integration Knowledge Base Overview

Last updated: October 16, 2026

# AIQ CI/CD Overview

# <a name="aanchor42"></a> Appvance AI – CI Integration

## Abstract

The purpose of this document is to give an initial guide about the implementation of Appvance IQ scenarios and AISG in a CI tool.

## Introduction

Appvance IQ can provide integrated smoke-test testing for any web-based application’s builds. All manual and AI-generated UX scripts are written in Test Designer. Test Designer is our technology in UX automation, that includes "state of the art" features like codeless mode, accessor fallback, accessor self-healing, auto-validation with SmartTags, support for all major browsers, and platforms, and support for major frameworks like Angular, KendoJS, ViewJS and others.

The solution involves three main components:

1. Appvance IQ scenarios. These scenario files can contain many test cases with several scripts each, even several iterations.
2. Blueprint templates to have the CICD tool execute an AISG scan (which includes API and UX level validations and traverses the application once the initial AI hinting process is done).
3. A CICD Tool that supports Apache Ant jobs (Jenkins, Bamboo, TeamCity, Circle CI, TFS, gitlab.com, etc)
 
## SOLUTION

Our technology is completely restful, so in order to trigger a build, you can use any CI tool able to trigger an HTTP call. We can provide an ANT-based solution to easily integrate with TeamCity to launch builds, tests, and upload results to an online set of Dashboards showing the results. To easily launch Appvance IQ processes you will need the AppvanceRestClient.

### Appvance Rest Client

The Appvance Rest Client enables any CI tool to connect to Appvance. It can be used from any CI Engines that support ANT tasks like GitLab, Jenkins, TeamCity, Circle CI, Bamboo, etc. The Appvance Rest Client is a .jar that is located here [https://s3-us-west-2.amazonaws.com/appvanceivy/projects/AppvanceCIClientWithDeps/master/latest/ivy](https://s3-us-west-2.amazonaws.com/appvanceivy/projects/AppvanceCIClientWithDeps/master/latest/ivy)

You can use the following line inside a**build.xml**file (sample included in a .zip below) target to download and name it as AppvanceRestClientWithDeps.jar:

<div class="codeSnippet" id="bkmrk-copy-%3Cget-src%3D%22https"><div class="codeSnippetBody">```
<get src="https://[aiq-controller-domain]:8443/UI/container/AppvanceCIClientWithDeps.jar" dest="${lib}/RestClient.jar"/>
```

 </div> </div>```
  
```

Find in the next section a zip with a complete setup including the build.xml file.

### **Triggering AppvanceIQ pipelines using Apache ANT Targets** 

Providing a CI tool with support for Ant tasks, like Jenkins, whole integration can be accomplished by Ant jobs. The only requirement is to set up a repository with a build.xml that has the targets and that also downloads our RestClient.jar. We currently can provide this data as a starting point, assuming some changes will be requested to adjust to any required workflow.

Here is a**.zip that includes all required files, including a sample documented build.xml**: [CICD\_Pipeline\_demo.zip](../../../Resources/Scripts/CICD_Pipeline_demo.zip)

### Setting the CI Tool (Jenkins used as example)

Create a free style project in Jenkins. Make sure ANT\_HOME is properly set in the system as this is required:

 ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/Z4Q4JRF89n1D7Ozf-263a255b02c9.png)

Configure the repository that has the required files (4.3.1) in the project:

 ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/zEMkSLWeU97EXH22-ce934f4328ab.png)

Set the Build Environment to use Ant targets:

 ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/jlZqyXjM5yqHfqZo-ab7ce815e30f.png)

Set the trigger configuration as you want. In the image, the trigger is set to run once daily, but you can set the Poll SCM option to configure the trigger to happen once the polling of a given repository detects new commits.

 ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/GAk16JKGgTWs3DTQ-b8efb0d4f250.png)

Next step is to add an Ant Job in the Build section:

 ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/32EWZgghAOtLWWvR-6619af16299e.png)

### Some available Target Descriptions

<div id="bkmrk-ant-task-description"> <table style="width:1245px;"> <colgroup> <col></col> <col></col> <col></col> </colgroup> <tbody> <tr> <td style="width:119px;text-align:left;">**Ant Task**

 </td> <td style="width:227px;text-align:left;">**Description**

 </td> <td style="width:154px;text-align:left;">**Parameters**

 </td> </tr> <tr> <td style="width:119px;text-align:left;">createBlueprint

 </td> <td style="width:227px;text-align:left;">Takes as main input a Template file that contains the smartTag library information, the custom actions, URL, number of browsers. This template was defined in the initial AI setup. With this template, the AI system is able to create a fresh AISG of the AUT on each triggered execution. The AISG is saved in a provided output folder.

 </td> <td style="width:154px;text-align:left;">template  
aiqCreds  
dataset  
buildVersion  
outputFolder  
elementName  
requestMaxDurationconsoleDetails  
reportStatusCode  
consoleDetails  
forceNewScan</td> </tr> <tr> <td colspan="1" style="width:119px;">**createScenariosDashboard** </td> <td colspan="1" style="width:227px;">Create the scenario HTML and configuration files   
(needs executeScenario target to be executed first)</td> <td colspan="1" style="width:154px;">elementName (name of scenario)  
resultsFolder  
reportFolder  
environment  
product ("Name of product")  
executionType ("scenarios")  
buildVersion  
consoleDetails   
bucketBase  
aiqCreds</td> </tr> <tr> <td colspan="1" style="width:119px;text-align:left;">startNode</td> <td colspan="1" style="width:227px;text-align:left;">It starts an AWS EC2 instance to be used as an Appvance IQ test node. </td> <td colspan="1" style="width:154px;text-align:left;">Writes the consoleDetails file with the information of the started node</td> </tr> <tr> <td colspan="1" style="width:119px;text-align:left;">stopNode</td> <td colspan="1" style="width:227px;text-align:left;">Stops an AWS EC2 instance used as an Appvance IQ test node. </td> <td colspan="1" style="width:154px;text-align:left;">Gets the data from the consoleDetails file.</td> </tr> <tr> <td style="width:119px;text-align:left;">checkScenarioResults

 </td> <td style="width:227px;text-align:left;">Verifies if there were more than a user-defined number of request returning status error codes greater or equal to the requestMaxDuration (specified in CreateBlueprint)  
Add -1 as parameter value to ignore that metric.

 </td> <td style="width:154px;text-align:left;">maxFailures  
minSuccessPercentage  
reports (destination folder)

 </td> </tr> <tr> <td colspan="1" style="width:119px;text-align:left;">checkBlueprintResults</td> <td colspan="1" style="width:227px;text-align:left;">Verifies the results of the AISG scanning against parameters. Add -1 as parameter value to ignore that metric.</td> <td colspan="1" style="width:154px;text-align:left;">maxFailingRequests  
maxValidationFailures  
minValidationRatio

 </td> </tr> <tr> <td style="width:119px;text-align:left;">reportUpload

 </td> <td style="width:227px;text-align:left;">Uploads to the Dashboard all the reports gathered from the AISG creation process.  
(called by createScenariosDashboard and blueprintDashboard calls)

 </td> <td style="width:154px;text-align:left;">buildVersion  
credentials  
bucketBase  
reportFolder  
executionType ("blueprints" or "scenarios")  
environment ( "QA1", "QA2", "QAn", "Production")product ( i.e.: CustormerSite.com to test )</td> </tr> <tr> <td style="width:119px;text-align:left;">**executeScenario**

 </td> <td style="width:227px;text-align:left;">Ant Task used to execute an Appvance IQ scenario. Use this to run your must-have validation scripts.

 </td> <td style="width:154px;text-align:left;">scenario  
aiqCreds  
consoleDetails  
dir

 </td> </tr> <tr> <td style="width:119px;text-align:left;">**blueprintDashboard**

 </td> <td style="width:227px;text-align:left;">Creates the AISG HTML dashboard with the AISG execution results  
(needs createBlueprint target to be executed first)

 </td> <td style="width:154px;text-align:left;">credentials  
customer  
bucketBase  
executionType ("blueprints" or "scenarios")  
environment ( "QA1", "QA2", "QAn", "Production")product ( i.e.: CustormerSite.com to test )</td> </tr> <tr> <td style="width:119px;text-align:left;">generateRegressionScenario

 </td> <td style="width:227px;text-align:left;">Uses server access logs and the AISG to create AI-generated scripts in a ready to run regression scenario. (This scenario can then be executed with the executeScenario build target)

 </td> <td style="width:154px;text-align:left;">projectName  
fileConfig  
aiqCreds  
logsRemoteFolder  
outputFolder

 </td> </tr> <tr> <td colspan="1" style="width:119px;text-align:left;">UpdateJiraTicket</td> <td colspan="1" style="width:227px;text-align:left;">This will add a comment to an existing Atlassian Jira ticket with results of the scenario execution or the AISG process.</td> <td colspan="1" style="width:154px;text-align:left;">jiraCreds  
reportFolder  
ticketId  
maxFailures  
minSuccessPercentage  
jiraApiVersion

 </td> </tr> <tr> <td colspan="1" style="width:119px;text-align:left;">Report</td> <td colspan="1" style="width:227px;text-align:left;">Creates a Test Scenario/Scripts report</td> <td colspan="1" style="width:154px;text-align:left;">resultsFolder;  
projectName;  
buildNumber;  
branch;  
reportFolder;</td> </tr> <tr> <td colspan="1" style="width:119px;text-align:left;">FetchScenarioResults</td> <td colspan="1" style="width:227px;text-align:left;">Save scenario results in a JUnit format, using the resultFolder parameter</td> <td colspan="1" style="width:154px;text-align:left;">aiqCreds  
scenario  
scenarioDir  
consoleDetails  
resultsFolder  
stopOnFailure

 </td> </tr> <tr> <td colspan="1" style="width:119px;text-align:left;">S3Download</td> <td colspan="1" style="width:227px;text-align:left;">Downloads a folder from S3</td> <td colspan="1" style="width:154px;text-align:left;">credentials  
bucketBase  
localFolder  
remoteFolder

 </td> </tr> </tbody> </table>

 </div>## REPORTING AND DASHBOARDS

We will have several levels of Summary Dashboard.

1. Global Main Dashboard  
    Show global summarized data at environment (stage) level (alpha, beta, staging, qa4, etc) and per product (web player, IOS player, Android Player)  
     Product A  
     Environment A  
     LastExecution "Scenarios", Link to history dashboard and link to execution report  
     LastExecution "Blueprints", Link to history dashboard and link to execution report  
     Environment B  
     LastExecution "Scenarios", Link to history dashboard and link to execution report  
     LastExecution "Blueprints", Link to history dashboard and link to execution report
2. History Dashboard  
    This shows all the latest tests and AISG ran per each environment per product, like this one:  
    below will be other environments (stages) if available.
3. Execution Historic Dashboard  
    If you click one of the above rows, it will show the historical summaries for results on that specific test/AISG.
4. Single execution Details  
    Clicking on an individual execution in the previous Execution Historical Dashboard we will see specific details on that test successes and failures.
 
**Sample AI Main dashboard report:**

In the following link you will be able to see a sample dashboard for an AISG scanning.  
[https://appvance-dev-cicd.s3-us-west-2.amazonaws.com/products/main.html](https://appvance-dev-cicd.s3-us-west-2.amazonaws.com/products/main.html)

### **A triggering system using CURL using Appvance Gitlab and Amazon AWS IT** 

This section is added as an example of other possible ways to interact with Appvance IQ. Currently, some clients do prefer us to manage this integration**using our Gitlab and Amazon AWS IT**and they use CURL to trigger builds when they want. So, to trigger a build in Linux/Windows using CURL the command line would be

```
curl -X POST -F token=TOKEN \<br></br>     -F ref=ENVIRONMENT \<br></br><a href="https://gitlab.com/api/v4/projects/" style="text-decoration:none;">     https://gitlab.com/api/v4/projects/</a>PROJECT_ID/trigger/pipeline
```

Clearly replacing TOKEN, and PROJECT\_ID with values to be defined. The ENVIRONMENT can be QA4, Alpha, Staging, etc.

To trigger the first Smoke Test group, you can call

```
curl -X POST \<br></br>     -F token=TOKEN \<br></br>     -F ref=Staging \<br></br>     https://gitlab.com/api/v4/projects/9504048/trigger/pipeline
```

The result of the call is a JSON that looks like

```
{<br></br>   “id”: 39791847,<br></br>   “sha”: “c656bbbbc5844f342a677d28c3b21c1ad3c6e10ad”,<br></br>   “ref”: “QA4”,<br></br>   …<br></br>}<br></br><br></br>
```

The important element is the “**id**”. Extract the**id**from the JSON file and use it to get the summary about successes and failures after the test ends, with this general format URL:

**https://s3-us-west-2.amazonaws.com/ACCOUNT/projects/PROJECT\_NAME/ENVIRONMENT/BUILD\_ID/report.json**

Where**ACCOUNT**is the client name,**PROJECT\_NAME**is the Project Name,**ENVIRONMENT**can be for example QA4, Alpha, Staging, etc., and**BUILD\_ID**comes from above JSON response.

So for example, in the case of the above response, the results URL would be

**https://s3-us-west-2.amazonaws.com/ACCOUNT/projects/Scenario\_01to10/Staging/39789664/report.json**

The result of the<u>call if the scenario has not yet finished executing</u>is an HTTP 403. Forbidden Response

The result of the call when the scenario has already finished is a valid JSON file that indicates the count and name of successes and failures like:

```
{<br></br>   “nottested”: 1,<br></br>   “workingClasses”: [“MyAccont_1_QA4_DeepLinkTest”],<br></br>   “failures”: 0,<br></br>   “successes”: 1,<br></br>   “skippedClasses”: [],<br></br>   “failingClasses”: [],<br></br>   “project”: “MyAccount_Validations”,<br></br>   “buildNumber”: “40791847”,<br></br>   “branch”: “QA4”,<br></br>   “hash”: “2be843acd5622293087a32496c67d1bb”,<br></br>   “skipped”: 0<br></br>}
```

```

            <br></br>        
```

### Accessing the HTML Dashboards from AWS S3

Fully detailed results about each project can be accessed using this URL

**For AISG**: https:/**BUCKET**/s3-us-west-2.amazonaws.com//products/**PRODUCT**/**ENVIRONMENT**/**EXECUTIONTYPE**/**BUILD\_ID**/blueprintExecution.html

**For scenarios**: https:/**BUCKET**.s3-us-west-2.amazonaws.com/products/**PRODUCT**/**ENVIRONMENT**/**EXECUTIONTYPE**/**ELEMENTNAME**/**BUILD\_ID**/report.html

<div id="bkmrk-field-description-bu"> <table> <colgroup> <col></col> <col></col> </colgroup> <tbody> <tr> <th>Field</th> <th>Description</th> </tr> <tr> <td>BUCKET</td> <td>customer's space in s3</td> </tr> <tr> <td>PRODUCT</td> <td>name of product </td> </tr> <tr> <td>ENVIRONMENT</td> <td><span style="color:rgb(9,30,66);">can be for example QA4, Alpha, Staging, etc</span> </td> </tr> <tr> <td>BUILD\_ID</td> <td>identifier for the jenkins last execution for this report</td> </tr> <tr> <td>EXECUTION\_TYPE</td> <td>can be "blueprints" or "scenarios"</td> </tr> </tbody> </table>

 </div><div id="bkmrk-last-updated%3A-march-">---

Last updated: <span class="mc-variable General.NewDateTimeVariable variable">March 13, 2024</span>

If you have any feedback on this topic, please contact us at <documentation@appvance.ai>

</div>

# Update CI/CD Dashboard Code Location for AIQ 5.x

## Updating CICD Dashboard Code Location for AIQ 5.x.x

If your CICD dashboard was created with a CICD client downloaded from an Appvance S3 service., you must follow the update process to point your CICD `build.xml` file to your AIQ controller CICD client.

The Appvance S3 service that contains this code will be removed in the near future. If you have not performed the update for your 5.0.0 release your CICD dashboard will not work.

### Update build.xml Process

1. Follow the appropriate steps for your operating system:
    
    
    - Linux / Mac OS
        
        Open a terminal and type the following commands. They will download a file `updateGetURL.jar` to the folder where you have your` build.xml` file. Do replace values between `<>` with your correct values.
        
        `cd <folder-with-build.xml-file>`
        
        `wget http://<aiq controller domain>:8080/UI/container/updateGetURL.jar`
        
        `java -jar updateGetURL.jar <controller-domain-or-ip> build.xml`
        
        Value for `<controller-domain-or-ip>` can be similar to any of the following:
        
        
        - `java -jar updateGetURL.jar ec2-52-52-192-202.us-west-1.compute.amazonaws.com build.xml`
        - `java -jar updateGetURL.jar localhost build.xml`
        - `java -jar updateGetURL.jar 52.52.192.202 build.xml`
        - `java -jar updateGetURL.jar aiq-server.mydomain.com build.xml`
    - Windows
        
        
        1. Open a browser and download a file by copying the following URL into the browser:
            
            `http://<controller-domain-or-ip>:8080/UI/container/updateGetURL.jar`
        2. Copy the downloaded `updateGetURL.jar` file to the same folder where your `build.xml` file is located.
        3. Execute the following command in a cmd prompt:
            
            `java -jar updateGetURL.jar <controller-domain-or-ip> build.xml`
            
            Value for `<controller-domain-or-ip>` can be similar to any of the following:
            
            
            - `java -jar updateGetURL.jar ec2-52-52-192-202.us-west-1.compute.amazonaws.com build.xml`
            - `java -jar updateGetURL.jar localhost build.xml`
            - `java -jar updateGetURL.jar 52.52.192.202 build.xml`
            - `java -jar updateGetURL.jar aiq-server.mydomain.com build.xml`
2. After executing the above commands, open your `build.xml` file in a text editor and verify that a line similar to the following exists:
    
    `<get dest="${lib}/RestClient.jar" src="http://<controller-domain>:8080/UI/container/AppvanceCIClientWithDeps.jar"/>`
    
    The text `<controller-domain>` should be replaced by your controller domain/ip as shown in the `controller.json` file.
3. Push the changes to the `build.xml` file in your repository.
 
### Troubleshooting

In case of any issues running the java `updateGetURL.jar`, you can manually edit the `build.xml` file to have the `get` line to have the `src` property use your controller to download the client such as :

`<get dest="${lib}/RestClient.jar" src="http://<controller-domain>:8080/UI/container/AppvanceCIClientWithDeps.jar"/>`

<div id="bkmrk-last-updated%3A-march-">---

Last updated: <span class="mc-variable General.NewDateTimeVariable variable">March 17, 2024</span>

If you have any feedback on this topic, please contact us at <documentation@appvance.ai>

</div>

# Bamboo CI Integration with AIQ Dashboard Creation

## Abstract

Appvance IQ typically runs using a Docker Linux environment which is natural for ANT tasks, those tasks trigger different parts of the process, the behavior is ruled by parameters that are stated in a build.xml file located in the root of the repository.  
In this document, you will find how to implement these ANT tasks using Bamboo.

## Bamboo server requirement

Assuming that an existant Bamboo server, the only thing we need to add to the server isthe Apache Ant build scripting language, please follow the installation guide in [https://ant.apache.org/manual/install.html](https://ant.apache.org/manual/install.html), later it will be necessary to reference it in the Bamboo configuration as a **server executable** providing a label and the full path to the package executables.

## Plan Configuration

The native build configuration is based in agents, Dockers configuration are not covered in the present document

### Create a Project

Give the project a name and a key as an acronym, optionally you can fill the description with some relevant info.

 ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/f0zIbWtoWfmLjeun-86afb9788ac0.png)### Create a Plan

Give the plan a name and a key as an acronym, optionally you can fill the description with some relevant info.

 ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/u1ffSD3f5e8TiX9Z-04b5e555e76e.png)### Set the repository

Fill the repository credentials fields and the correct branch and click in the Configure Plan button

Fill the repository credentials fields and the correct branch and click in the Configure Plan button

 ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/N60EVBZb4dhs9AOC-d59bf0784d64.png)### Configuring the plan

It will be redirected to this form

All the necessary jobs for the scenario execution have been created as ant tasks, please modify the paths as per the environment you are setting up and create the following tasks in this order

 ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/PpSkm6pnEzzFHu3h-ea814440dd26.png)It is important to have the Force Clean Build option checked to avoid accumulating the results in the Dashboard of each of the plan executions.

 ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/CPRqv51Tkkw9xdNB-402a756f875e.png)Updating necessary dependencies to execute different AppvanceRestClient ant tasks.

 ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/u1C57nJiBTSdVyQs-645ecf60d071.png)Scenario execution as it has been stated in the build.xml file

 ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/AiZN4R01r5vANsH9-5b6366e9fd55.png)Based on the results of the scenario execution the dashboard is updated

## Windows agent requirements 

1. It is needed to have Appvance IQ completely installed in the agent Run Appvance IQ on Windows using autologon tool and task scheduler (for the IE issue when running as a service). See [Runing Appvance IQ on Windows as a Service](/books/continuous-integration/page/runing-appvance-iq-on-windows-as-a-service)
2. Access to a database (MySQL or Oracle) with AIQ schema created, it can be local or remote.
3. Apache Ant build scripting languaje, please follow the installation guide in [https://ant.apache.org/manual/install.html](https://ant.apache.org/manual/install.html), later it will be necessary to reference it in the Bamboo configuration.
 
<div id="bkmrk-last-updated%3A-july-2">---

Last updated: <span class="mc-variable General.NewDateTimeVariable variable">July 21, 2023</span>

If you have any feedback on this topic, please contact us at <documentation@appvance.ai>

</div>

# Troubleshoot Linux Environment Issues for AIQ CI

Use this article when AIQ executions or CI jobs fail because of Linux host, browser, display, dependency, permission, or environment configuration issues.

## Validation workflow

1. Collect the CI job log, AIQ/Test Node log, browser log, and host package/runtime versions.
2. Check Linux display/headless configuration, permissions, dependencies, proxy/network access, and working directory paths.
3. Run a minimal scenario on the same host before changing the full CI pipeline.

---

Last updated: October 19, 2026

# Using AIQ with Docker/Containers

### What is Docker?

Docker is a container management service that allows developers to build applications, ship them into containers and run them anywhere.

### What is a container?

Is the encapsulation os an application with it dependencies, appears to be a lightweight form of virtual machine (VMs).

### Facts about containers

- Share resources with the host OS (more efficient).
- Can be started and stopped in a fraction of the time a virtual machine would do it.
- Incurs into little to no overhead compared to applications running natively on the host OS.
- Allows changes in the running environment easily.
- A developer can run dozens of containers at the same time, making it possible to emulate a production-ready distributed system.
- Allows run complex applications without needing to spend hours of configuration and installation issues or worrying about the changes required for their system.
- This concept is not new, it's an old concept in UNIX systems, they had the chroot command, there have been different implementations across the time and different distributions. coming to what we are discussing today.

### Docker Hub

Get started by downloading Docker Desktop, and learn how you can build, tag and share a sample image on Hub, please take a look to https://hub.docker.com/, create an account and log in, you will find an enormous number of public container images for download, avoiding duplicates work already done by others; in our case could use one of those images as the base to create a new one for AIQ.

Docker philosophy "Batteries included but replaceable", meaning that a complete solution would be provided, but parts could be swapped out.

One of the biggest use cases and strongest drivers behind the uptake of containers are microservices.

### Installing Docker

The official way to install docker as below.

$ culr http://get.docker.com &gt; /tmp/install.sh

A good install practice is checking the changes to be performed, do it as below.

$ cat /tmp/install.sh

Change the access permission for /tmp/install.sh.

$ chmod +x /tmp/install.sh

Issue the script file as below

$ /tmp/install.sh

A few checks, then install docker using the appropriate package for your system, this documentation does not include the installation procedure for Windows platforms, there are a lot of considerations beginning by Docker is native for Unix alike systems and there are not strong implementations and experiences in Windows.

In case of Red Hat based distributions, it is recommended you run SELLinux in permissive mode, which will log rather than enforce errors, check mode by issuing as below.

$ sestatus

If the current mode is "enforcing" then change into the permissive mode as follows.

$ setenforce 0

### Additional tasks

As Docker is a privileged binary, it will need to prefix commands with sudo to avoid that add the current user to the docker group as follows.

$ sudo usermod -aG docker

The last command is for Ubuntu but would be similar for other Linux distributions, now restart the Docker service by performing.

$ sudo service docker restart

In order to test that the Docker has been properly installed run the command as follows.

$ docker run debian echo "hello world"

Some verbosity will be obtained, the last line must be "hello world"

### Building images from Dockerfiles

Dockerfile is a plain text file containing instructions to create an image, a Docker image is a file, comprised of multiple layers, used to execute code in a Docker container.

Most common instructions are:

- FROM, specify the base image to use, the format for this instruction is "FROM &lt;image&gt;:&lt;version&gt;" latest version will be used if no version is specified e.g. (FROM ubuntu:18.04)
- WORKDIR, specify the default folder in the container.
- ENV, specify environmental variables in pairs e.g. (ENV folderTemp /tmp)
- LABEL, customized labels e.g. (version=1.0)
- EXPOSE, informs Docker that the container listens on the specified network ports at runtime e.g. (EXPOSE 80/tcp)
- USER, sets the user name (or UID) and optionally the user group (or GID) to use when running the image and for anyRUN,CMDandENTRYPOINTinstructions that follow it in theDockerfile e.g. (USER patrick)
- VOLUME, creates a mount point with the specified name and marks it as holding externally mounted volumes from native host or other containers, these volumes will persist the data.
- COPY, This copies one or many local files or folders into the destination within your Docker image e.g. (COPY Gemfile Gemfile.lock ./)
- ADD, same that COPY but additionally If &lt;source&gt; is a local tar archive in a recognized compression format, then it is automatically unpacked as a directory into the Docker image. e.g. (ADD rootfs.tar.xz /)
- RUN, executes the command(s) that you give in a new layer and creates a new image. This is mainly used for installing a new package, e.g. (RUN apt-get update &amp;&amp; apt-get install -y apache2)
- ENTRYPOINT, Entrypoint sets the command and parameters that will be executed first when a container is run, e.g. (ENTRYPOINT \["/usr/sbin/apache2ctl", "-D", "FOREGROUND"\]
- CMD, The main purpose of a CMD (Dockerfiles) / command (Docker Compose files) is to provide defaults when executing a container. These will be executed after the entrypoint.

There are more instructions and details over this stuff, but this document is not intended to be a Docker course but the necessary tools to implement AIQ in containers.

### Best Practices

- Needs to be easy to destroy.
- One service per container.
- Avoid undesired files by declaring them in .dockerignore file.
- As few layers as possible.
- Use multiline in instructions for readability and layers reduction.
- Have the more arguments as possible.
- Avoid installing unnecessary packages.
- Adding labels that help and guide the usage.

---

## AIQ container planning

Use containers to make the execution environment repeatable, but keep the AIQ controller, test-node, browser, network, and results-storage requirements aligned with the deployment topology. Validate image contents, mounted paths, credentials, and outbound connectivity before running a customer workload.

## Operational checklist

- Pin the base image and document the Java, browser, driver, and AIQ versions included in it.
- Keep secrets outside the image and provide them through the approved CI/CD secret mechanism.
- Persist required scripts, reports, and logs using the documented workspace or artifact mechanism.
- Run a smoke scenario first, then compare container and non-container results before scaling execution.

Last updated: October 15, 2026

If you have any feedback on this topic, please contact us at <documentation@appvance.ai>

# Run AIQ Workflows from GitHub Actions

[https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-ant](https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-ant)

You must be authorized on GitHub with the public key.

Create a new repository.

 ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/fsotpHXhOIbMg8Yw-70d5dbf0a61e.png) ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/UtIkyYAVKehAmyPY-3f26225f8de7.png) ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/m6PKQLWkdkdFTLwW-058bb8c5955b.png) ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/GzAOCbmRtTEMf2gX-92ca536c8af4.png)Clone repo.

 ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/3fPrIAKZm0BWO0QH-174319c01be5.png)Open the terminal on his machine.

 ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/NaCwOND2i3wB4ZFo-3f54657912db.png) ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/zJeFdIJ9xYs8WICF-7790c1e2c8b3.png) ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/5ZHgDIMzPN5YraDl-69a0f25b740b.png) ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/1JsHmknqbxyLlJHl-f6772d9499ba.png)Change directory.

 ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/xkHvQI2KE9A8hKCp-ad226c4f402f.png) ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/rv5zTYl6RamYwHaF-727444dcf62c.png)Create files or paste some code into the repo

 ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/6mtUzoY5iS6jO3FV-30e30ac324e8.png)<div id="bkmrk-name%3A-ci-create-dash"> <table> <colgroup> <col style="width:680px;"></col> </colgroup> <tbody> <tr> <td><div style="border-width:1px;"><div>```
name: CI-Create-Dashboard
on:
  push:
    branches:
      - master
  workflow_dispatch:
env:
  REGISTRY: <name of registry>jobs:
  lint:
    runs-on: ubuntu-latest
    name: Lint Code Base
    steps:
      - name: Checkout Code
        uses: actions/checkout@v3
        with:
          fetch-depth: 0
      - name: Lint Code Base
        uses: github/super-linter@v4
        env:
          VALIDATE_ALL_CODEBASE: false
          DEFAULT_BRANCH: master
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  build_and_push:
    runs-on: ubuntu-latest
    name: Build and push docker image
    needs: lint
    outputs:
      commit_hash: ${{ steps.commit_hash.outputs.commit_hash }}
    steps:
      - uses: actions/checkout@v3
      - name: Set up JDK 11
        uses: actions/setup-java@v3
        with: 
          java-version: '11'
          distribution: 'adopt'
      - name: Build with Ant
        run: ant -noinput -buildfile build.xml
      - id: commit_hash
        run: echo "::set-output name=commit_hash::${GITHUB_SHA::7}"      - name: Login to <registry>        uses: docker/login-action@v2
        with:
          username: ${{ secrets.DOCKER_USER }}
          password: ${{ secrets.DOCKER_TOKEN }}
      - name: Build and push
        uses: docker/build-push-action@v3
        with:
          context: .
          push: true
          tags: |
            ${{ env.REGISTRY }}:${{ steps.commit_hash.outputs.commit_hash }}
```

 </div> </div> </td> </tr> </tbody> </table>

 </div>Copy code from above example main.yml and paste into, or use example from GitHub

 ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/10fCw4FGUCB0CHi2-5d95ee7c79d1.png) ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/DkGrrK8rOdR7udoQ-f2c23206138f.png) ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/xNyXRj8d1q6sqE3p-df96afca3774.png) ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/MSu5Rr5XGXtqncmx-af13a1908168.png)GitHub created directory for you [.github](https://github.com/nikolasht1/new-repository/tree/main/.github)/**workflows**/

 ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/LO7YvjrgWZuaVZUi-284a208732e9.png) ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/SfMih5EtWZvL0hNp-8484260515e1.png) ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/aHzxNMAaNQsOsSEp-0821995689ef.png) ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/DD62TnXfw4h2uJad-70a030484d95.png) ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/HLrmbJiMK5tyLfW2-675a30ef3c3e.png) ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/c2VJOWVuFalWDxpv-0d69e0d6c84d.png)For more information visit [https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-ant](https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-ant)

<div id="bkmrk-last-updated%3A-june-2">---

Last updated: <span class="mc-variable General.NewDateTimeVariable variable">June 26, 2023</span>

If you have any feedback on this topic, please contact us at <documentation@appvance.ai>

</div>

# GitHub Action CICD

Prerequisite: Attached file, GITRepo.zip should be present in the GitHub repo as shown in the first snapshot

- [GITRepo.zip](../../../Resources/Scripts/GITRepo.zip)
 
The following files are available in the folder. The following information details the configuration changes need to be made.

- Build.xml
- controller.json
- ec2.creds
 
## Build.xml

Build.xml files hold the configuration settings and also all the defined ANT tags.

Some of the ant tags are explained below:

- deps - Downloads the required AppvanceRestClientWithDeps.jar
- startNode - Starts the mentioned EC2 instance using the file ec2.creds and controller.json files which holds details about account and instance details.  
    setupEnvironment - Depending on the parameters, we could use this to set up the environment.
- executeScenario - Executes the mentioned scenarios.
- stopNode - Stops the instance once the execution is done.
- createScenariosDashboard - This tag will create the Scenario Dashboard once execution is complete.
- createScenariosDashboard - This tag will create the Scenario Dashboard once execution is complete.
 
### AISG Related Targets

- blueprintCreation - Starts the creation of the AISG.
- reportUpload - uploads the smoke test report, timing report and a BlueprintReport.html which is a human-readable report.uploads the smoke test report, timing report and a BlueprintReport.html which is a human-readable report.
- blueprintDashboard: this target generates an HTML report that includes the history of all previous build reports and uploads it to an S3 bucket.
- checkResult: this target checks the AISG generated report and it will fail the build if the number of failures surpases a user defined parameter.
- generateRegressionScenario - Generates the Regression scenarios.
 
Details about all the ant targets can be found in [CICD- AntTags.](https://docs.appvance.net/Content/AIQ/Integrations/ContinousIntegration/CICD__AntTags.htm)

## controller.json

Basically has details about the controller machine and the credentials. Above can be used when we have the EC2 set-up.

When we are running AIQ local builds, instances in the 2nd line could be replaced with "url" and full URL of the AIQ controller could be provided.

<div class="codeSnippet" id="bkmrk-copy-%7B%22controller%22%3A-"><div class="codeSnippetBody">```
{<br></br><span style="color:#dd1144;">"controller"</span>: {<br></br><span style="color:#dd1144;">"url"</span>: <span style="color:#dd1144;">"<http://<replace_IP>:8080"</span>,><br></br><span style="color:#dd1144;">"instances"</span>: [<span style="color:#dd1144;">"<replace_instanceID>"</span>],<br></br><span style="color:#dd1144;">"ec2Creds"</span>: <span style="color:#dd1144;">"ec2.creds"</span>,<br></br><span style="color:#dd1144;">"timeOut"</span>: <span style="color:#008080;">180</span>,<br></br><span style="color:#dd1144;">"username"</span>: <span style="color:#dd1144;">"<replace_username>"</span>,<br></br><span style="color:#dd1144;">"password"</span>: <span style="color:#dd1144;">"<replace_password>"</span>,<br></br><span style="color:#dd1144;">"workFolder"</span>: <span style="color:#dd1144;">"<replace_path/to/AIQ/resources>"</span><br></br>}<br></br>}<br></br>
```

 </div> </div>## ec2.creds

ec2.creds will have details of the AWS account: This can be used when we are using AIQ Controller on the EC2 machine and when yours tests are run in the AWS cloud.

AWS\_ACCESS\_KEY\_ID=&lt;replace\_awsKEYIDE&gt;

AWS\_SECRET\_ACCESS\_KEY=&lt;replace\_awsSecretAccessKey&gt;

## Required File Changes

 ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/486iVn4Wvw1Lxm4Q-7c33dbb05877.png)

Once we login to GitHub click the Actions tabs and click New Workflow

 ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/YtkIcWLBGjCBzfRV-b9f4f49d3cbb.png)

 ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/Hn3brP6fR1ddr9EN-2f5495186ef5.png)

Click Simple Workflow by Github and paste the below code into the .yml Text Editor

<div class="codeSnippet" id="bkmrk-copy-name%3A-ci-create"><div class="codeSnippetBody">```
name: CI-Create-Dashboard<br></br><br></br>on:<br></br>  push:<br></br>    branches:<br></br>      - master<br></br>  workflow_dispatch:<br></br><br></br>env:<br></br>  REGISTRY: &lt;name of registry&gt;jobs:<br></br>  lint:<br></br>    runs-on: ubuntu-latest<br></br>    name: Lint Code Base<br></br>    steps:<br></br>      - name: Checkout Code<br></br>        uses: actions/checkout@v3<br></br>        with:<br></br>          fetch-depth: 0<br></br>      - name: Lint Code Base<br></br>        uses: github/super-linter@v4<br></br>        env:<br></br>          VALIDATE_ALL_CODEBASE: false<br></br>          DEFAULT_BRANCH: master<br></br>          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}<br></br><br></br>  build_and_push:<br></br>    runs-on: ubuntu-latest<br></br>    name: Build and push docker image<br></br>    needs: lint<br></br>    outputs:<br></br>      commit_hash: ${{ steps.commit_hash.outputs.commit_hash }}<br></br>    steps:<br></br>      - uses: actions/checkout@v3<br></br>      - name: Set up JDK 11<br></br>        uses: actions/setup-java@v3<br></br>        with: <br></br>          java-version: '11'<br></br>          distribution: 'adopt'<br></br>      - name: Build with Ant<br></br>        run: ant -noinput -buildfile build.xml<br></br><br></br>      - id: commit_hash<br></br>        run: echo "::set-output name=commit_hash::${GITHUB_SHA::7}"      - name: Login to &lt;registry&gt;        uses: docker/login-action@v2<br></br>        with:<br></br>          username: ${{ secrets.DOCKER_USER }}<br></br>          password: ${{ secrets.DOCKER_TOKEN }}<br></br><br></br>      - name: Build and push<br></br>        uses: docker/build-push-action@v3<br></br>        with:<br></br>          context: .<br></br>          push: true<br></br>          tags: |<br></br>            ${{ env.REGISTRY }}:${{ steps.commit_hash.outputs.commit_hash }}
```

 </div> </div><div id="bkmrk-%C2%A0" style="border-width:1px;"><div>```
 
```

```

```

 </div> </div> ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/LSpMMvvTJBc0oYA6-484fb917474d.png)Click Run Workflow

 ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/qIgGoxZBLZVHTXpL-3fd5f3286ed4.png)<div id="bkmrk-last-updated%3A-july-0">---

Last updated: <span class="mc-variable General.NewDateTimeVariable variable">July 03, 2023</span>

If you have any feedback on this topic, please contact us at <documentation@appvance.ai>

</div>

# How to consume scenario into the dashboard

- Unzip the files that are available (That we got by making use of CreateScenarioDashboard ant call)
- edit the build.xml:
    - change product property value
    - change environment property value
    - change project property value
    - change the customer property value
    - change bucket property value
- RMScenario1: run **ant report1**
- RMScenario2: run **ant report2**

---

Last updated: October 15, 2026

If you have any feedback on this topic, please contact us at <documentation@appvance.ai>

# Link Jenkins Jobs for AIQ Workflows

How to create linking between different jobs or projects in Jenkins. For our learning purposes, we have created two small jobs named ‘Job 01’ and ‘Job 02’ in Jenkins server:

![Ujl2EF3mADAjSNGR-cc106c9cb617.png](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/Ujl2EF3mADAjSNGR-cc106c9cb617.png)In order to this, let’s go to job 02 and select configure from dropdown:

![mJ1eKILraAD1MXgK-bcd1977f674a.png](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/mJ1eKILraAD1MXgK-bcd1977f674a.png)Now go to ‘Build triggers’ and select ‘Build after other projects are built’. Under ‘Projects to Watch’ to select ‘job 01’:

![efKokVfpDlSIyaxq-0cf27d5994f6.png](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/efKokVfpDlSIyaxq-0cf27d5994f6.png)Let’s select ‘Trigger only if build is stable’ so that ‘Job 02’ is executed only when ‘Job 01’ is successfully completed. After this, select save and apply. Now when you build ‘Job 01’ and see the log output, it should be something like this:

![nwxKzaeA7TnwstCd-fdea5d3d861e.png](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/nwxKzaeA7TnwstCd-fdea5d3d861e.png)---

If you have any feedback on this topic, please contact us at <documentation@appvance.ai>

Last updated: October 16, 2026

# Move or Relocate AIQ Dashboard Projects

Dashboard projects stored in one location can be moved into another s3 bucket or GIT repository.

**The dashboard projects can be moved from one location to another :**

**I) s3 to another s3 bucket.**

**ii) s3 bucket to GIT repository.**

**iii) GIT to GIT Repository.**

**iv) GIT Repository to s3 bucket.**

### **Steps to be followed to move/re-locate:**

**1.Below ant tag must be added to build.xml of a CICD project:**

i) Ant Tag to **relocate**:

```
<target name="relocation" depends="deps">      <taskdef name="relocation" classname="com.appvance.ci.location.Relocation">         <classpath refid="RestClientLibPath" />      </taskdef>      <relocation config="${config}" />   </target>
```

ii) Ant Tag to **UpdateDashboard**:

```
<target  name="updateDashboard" depends="deps">   <taskdef name="ProductDashboard" classname="com.appvance.ci.ProductsDashboard">		<classpath refid="RestClientLibPath" />   </taskdef>   <ProductDashboard 
		credentials="${awsCredentials}" 
		bucketBase="${Bucket}" 
		customer="${customer}" /></target>
```

Here, **ProductDashboard** is to re-generate all the Html content for you (history and main file only )

**2. Follow the below steps to add config.json file to move from one s3 bucket to another s3 bucket:**

i. Open a CICD project.

![oGdbB8lhC6k2aq5F-4f3df8d050c3.png](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/oGdbB8lhC6k2aq5F-4f3df8d050c3.png)ii. Create and add config.json file to the CICD project.

In the below example, it is added inside the AppvanceLibs folder

![HfpA7tsm2a8cbwA9-9ed67b578291.png](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/HfpA7tsm2a8cbwA9-9ed67b578291.png)iii. Copy the below content to the config.json file.

Input S3 &gt; S3

```
{
	"in": {
		"type":"s3",
		"source":"appvance-source",
		"folder": "products",
		"creds": "AppvanceLibs/ec2A.creds"	},
	"out": {
		"type":"s3",
		"target":"appvance-target",
		"creds": "AppvanceLibs/ec2B.creds"	}
}
```

In the above code,

**source**: In this field input the s3 bucket name in which already dashboard data is stored

**target**: In this field input the s3 bucket name in which data needs to be moved.

**Note**: Make sure the ec2.creds file is added for both s3 buckets if they are in a different region.

- **To Relocate/Move dashboard data from S3 to GIT, you need to change the config.json to below and add githhtp.json to the project:**

Input S3 &gt; GIT

```
{
	"in": {
		"type":"s3",
		"source":"appvance-qa",
		"folder": "products",
		"creds": "AppvanceLibs/ec2.creds"	},	
	"out": {
		"type":"git",
		"creds": "AppvanceLibs/githttp.json"	}
}
```

Add the githttp.json file to CICD project

```
{
	"username": "someUserAccount@appvance.com",
	"password": "theUserPassword",
	"repository": "https://gitlab.com/theGitRepository.git",
	"branch": "thebranch",
	"sshPhrase": "";
	"sshKey": ""}
```

![RutTFDhB5pE9J7Io-bb6f692860dd.png](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/RutTFDhB5pE9J7Io-bb6f692860dd.png)- **To Relocate/Move dashboard data from GIT to GIT, you need to change the config.json to below and add githhtp.json to the project:**

Input GIT &gt; GIT

```
{
	"in": {
		"type":"git",
		"creds": "AppvanceLibs/githttpA.json"	},		
	"out": {
		"type":"git",
		"creds": "AppvanceLibs/githttpB.json"	}
}
```

Note: Add githttp.json files for both source and target repository location.

- **To Relocate/Move dashboard data from GIT to S3, you need to change the config.json to below and add githhtp.json to the project:**

Input GIT &gt; S3

```
{
	"in": {
		"type":"git",
		"creds": "AppvanceLibs/githttp.json"	},
	"out": {
		"type":"s3",
		"target":"appvance-wtc",
		"creds": "AppvanceLibs/ec2.creds"	}
}
```

**3. Now, open the command prompt from the CICD location and run the below command:**

Note: Not mandatory AIQ must be running to execute the below commands.

**ant relocation** // This command moves the file from source s3 bucket to target s3 bucket.

![b1n2Mtfv9e0u9zG3-28ced24fd4c9.png](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/b1n2Mtfv9e0u9zG3-28ced24fd4c9.png)**ant updateDashboard** // This command updates the existing dashboard main.html and reflects newly added data in the existing main.html.

**4. User can view the results with new s3 URI if the data is moved to s3 and if data is moved to GIT user must clone the GIT repository, then check out the branch&gt;click on Explore**

![xtOXVoEW6twRFwoA-3f58b8785ed7.png](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/xtOXVoEW6twRFwoA-3f58b8785ed7.png)![q57o7ZkMaI0Oe8Sh-4bba24dc064f.png](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/q57o7ZkMaI0Oe8Sh-4bba24dc064f.png)---

If you have any feedback on this topic, please contact us at <documentation@appvance.ai>

Last updated: October 16, 2026

# Questions on Jenkins Server

Regarding the test execution machine to trigger build XML for the dashboard (2 Core and 8GB for Jenkins, with ant and git plugin), can this be shared for different teams/applications?

Can you also confirm, that this machine will have a copy of the automated scripts? And if this is shared with different application teams, everyone will have access to the test scripts for all applications?

Responses -

1- Yes, it can be shared with different applications or teams, just change the product/environment to differentiate results.

2- Workspaces are created for each pipeline, and it gets saved there as a temp folder right and we don't know how long it stays there is a plugin called workspace clean up plugin, that can be configured to clean up workspaces[https://computingforgeeks.com/automatically-clean-up-jenkins-workspace-after-builds-complete/#:~:text=Login%20to%20Jenk\[…\]20tab%20below%20the%20page](#bkmrk-if-you-have-any-feed)

3- yes, I think everyone will have that access, again depends on 2

---

## Jenkins sharing guidance

Sharing a Jenkins host is supported when teams isolate workspaces, credentials, scripts, and AIQ environments. Grant access according to team ownership and remove temporary workspaces after builds when they may contain source code or secrets. Keep the Jenkins controller and execution agents sized for the combined workload rather than relying only on the minimum example sizing.

Last updated: October 15, 2026

If you have any feedback on this topic, please contact us at <documentation@appvance.ai>

# Parameterize the AIQ Controller URL in a GitLab CI/CD Pipeline

1. Edit the `gitlab-ci.yml` file and add the lines as in the following sample code.  
      
    The following example assumes that your controller JSON file is named `controller.json`. If your file is named differently adjust the code as needed.
    
    <div class="codeSnippet"><div class="codeSnippetBody">```
    variables:<br></br>   CONTROLLER: "http://10.70.10.1:8080"<br></br>   SCENARIO: "REPOSITORY/Appvance/scenarios/test.scenario"<br></br>script:<br></br>   - perl -pi -e 's/"url": "[^"]*"/"url": "$CONTROLLER"/' controller.json<br></br>   - export CONTROLLER=$CONTROLLER<br></br>   - ant createScenariosDashboard -Dscenario=$SCENARIO
    ```
    
     </div> </div>The `perl` command line in the script section, searches for the value of the URL in the JSON and replaces it with the value set in the GitLab variable named `CONTROLLER`. Then the value is added as a environmental variable so the build.xml file can use it to create the URL from where the `RestClient.jar` needs to be downloaded.
2. In the `build.xmlfile` add a line before the targets definitions, to get the controller from the environment variable.
    
    `<property name="controller" value="${env.CONTROLLER}"/>`
3. Modify the `deps` target so the URL to download the `RestClient.jar` will use the parameterized controller URL.
    
    <div class="codeSnippet"><div class="codeSnippetBody">```
    <target name="deps" depends="init"><br></br>    <mkdir dir="${lib}"/><br></br>    <get src="${controller}/UI/container/AppvanceCIClientWithDeps.jar" dest="${lib}/RestClient.jar"/><br></br></target>
    ```
    
     </div> </div>
4. When triggering the pipeline manually or in the pipeline scheduler, provide the new desired value for the `SCENARIO` and `CONTROLLER` variables.
 
<div id="bkmrk-last-updated%3A-septem">---

Last updated: <span class="mc-variable General.NewDateTimeVariable variable">September 25, 2024</span>

If you have any feedback on this topic, please contact us at <documentation@appvance.ai>

</div>

# Runing Appvance IQ on Windows as a Service

It is recommended that you start AIQ services automatically rather than manually. The suggested method is to use the Autologon utility to setup Appvance IQ to run as service on Windows.

Autologon is Microsoft utility that enables you to easily configure Windows’ built-in autologon mechanism. Instead of waiting for a user to enter their name and password, Windows uses the credentials you enter with Autologon, which are encrypted in the Registry, to log on the specified user automatically.

Prerequisites:

- Appvance IQ is installed on Windows OS
- Login to Windows using an account with administrator privileges
 
## Download and Install Autologon

1. Download Autologon from Microsoft here: [Download Autologon](https://docs.microsoft.com/en-us/sysinternals/downloads/autologon)
2. Extract `Autologon.zip` archive. For example, extract to `C:\Autologon`.
 
## Setup Autologon Service

### Checking for Previous Configurations

Verify that no other entries for Autologon service exist as follows. If there are previous configurations on the server, it may prevent Autologon from working correctly.

For any past users for which an Autologon service was created:

1. Open Autologon.
2. Enter the Username, Domain and Password.
3. Click **Disable**.
 
Check the Registry for Autologon entries:

1. Inthe Registry navigate to **HKEY\_LOCAL\_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon**
2. Change the value of the `AutoAdminLogon` key from `1 (true)` to `0 (false)`, to disable the `AutoAdminLogon` feature.
    
    See [Turn on automatic logon in Windows](https://learn.microsoft.com/en-us/troubleshoot/windows-server/user-profiles-and-logon/turn-on-automatic-logon) on the Microsoft site for more information.
 
Active Directory considerations:

- When the user used to login is provided by an Active Directory domain and the Active Directory is set to have an interactive login, autologon process will not work. In those cases, try creating a local user in the machine itself, edit its group policy to remove any interactive logon and use this local user to set the autologin process.
 
### Configuring Autologon

1. Open Autologon.exe (64 bit). The **Autologon - Sysinternals** window appears.
    
     ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/JxhlMyxdGPuuskqK-27dc8bc83055.png)
2. Enter the user’s password and click **Enable**.
    
     ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/DVLfJZcu2X90Svqt-1a4b55baa8b0.png)
3. Open **Task Scheduler** with administrative privileges, click **Action** and select **Create Basic Task**. The Create Basic Task Wizard appears.
    
     ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/1qGwSiXHCz35iss9-6cf394654361.png)
4. Enter a name in the **Name** box (such as AIQ or Appvance) and click **Next**The Task Trigger list appears
5. Select **When I log on** and click **Next**
    
     ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/nuGWoRj2yxSifasf-ad9fc21ee4c5.png)
6. The Action list appears.
7. Select **Start a Program** and click **Next**
    
     ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/NETXOoSwpy8VmHKE-bff7ace31542.png)
8. The Start a Program configuration appears.
9. Click **Browse**.
10. Browse to and select **&lt;aiq-path&gt;/TestNode/startup.bat** and click **Open**.
11. **IMPORTANT**: Also enter the **&lt;aiq-path&gt;/TestNode/** path in the **Start in** box and click **Next**.
    
     ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/UHZDq1pHVVm0N4Q0-612da5402225.png)
12. Select **Open the Properties dialog for this task when I click Finish**.
    
     ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/xyRMCyfYLm3bE2fi-cf79023dee27.png)
13. Click **Finish**The Properties dialog appears.
14. Select **Run only when user is logged on**.
15. Check **Run with highest privileges**.
    
     ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/83LjR4cXkNyAl84Z-78371a07e2e2.png)
16. Click **Settings**.
17. Uncheck the **Stop the task if it runs longer than** option.
    
     ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/qcmA3ebsdbKD5mwC-ca0ef86b844a.png)
18. Click **OK**.
19. When prompted, enter the service username and password to apply the changes and click **OK**.
    
     ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/O0sZu1XRXtZPJ22a-255c7de03fd5.png)
 
### Verifying Autologon Service

You may test the Autologon service by running it manually from the Task Scheduler. However to ensure the settings are working as expected, it is recommended that you restart the server and confirm that Appvance IQ launches properly without a user directly logging into the server.

<div id="bkmrk-last-updated%3A-march-">---

Last updated: <span class="mc-variable General.NewDateTimeVariable variable">March 26, 2024</span>

If you have any feedback on this topic, please contact us at <documentation@appvance.ai>

</div>

# Legacy Bamboo CI Setup for AIQ Execution

The more natural way to implement Appvance AI using Bamboo is by setting local or remote agents however it is possible performing it with dockers, they are recommended for isolated testing. This guide is oriented to configure execution plan for AppvanceIQ using agents configuration it does not matter if they are local or remote.

## Requeriments

The following requirements are the ones that are necessary to have AppvanceRestClient running test over Atlassian Bamboo.

1. Java Development Kit JDK, please install as it is required in the related Oracle site depending of the chosen platform [https://www.oracle.com/technetwork/java/javase/downloads/index.html](https://www.oracle.com/technetwork/java/javase/downloads/index.html).
2. Apache Ant build scripting languaje, please follow the installation guide in [https://ant.apache.org/manual/install.html](https://ant.apache.org/manual/install.html), later it will be necessary to reference it in the Bamboo configuration.
3. Database driver, Bamboo is natively prepared for H2, Oracle, PostgreSQL, MsSQL to store the builds data so <u>**this requirement will be necessary only in the case of MySQL database**</u>, it does not matter if the database is installed locally of remotely, it can be obtained in [https://dev.mysql.com/downloads/connector/j/,](https://dev.mysql.com/downloads/connector/j/) the jar file will be copied to the lib folder of bamboo later.
4. git distributed version control, the installation procedure depends of the chosen platform.
5. Depending of the build load it could be necessary to have the agents installed on separated machines, so we do decentralize the entire Bamboo build processing, in this case please follow this installation guide [https://confluence.atlassian.com/bamboo/bamboo-remote-agent-installation-guide-289276832.html](https://confluence.atlassian.com/bamboo/bamboo-remote-agent-installation-guide-289276832.html).
 
## Bamboo installation

The package can be downloaded from [https://www.atlassian.com/software/bamboo/download](https://www.atlassian.com/software/bamboo/download) choose the platform you are installing, follow the Bamboo installation guide located in [https://confluence.atlassian.com/bamboo/bamboo-installation-guide-289276785.html](https://confluence.atlassian.com/bamboo/bamboo-installation-guide-289276785.html), during the process you will asked for the location of the bamboo files, it is highly suggested to located this folder in a place out of the user folders, so every user logged in the system can access the folder.

**JUST IN THE CASE OF MYSQL.** Once you have Completed the installation, you will need to copy the MySQL JDBC jar file in the sub folder lib of the Bamboo executables.

Once this has been completed please start Bamboo by issuing BambooConsole script file if you want to run it as desktop application or installAsService script file to run it as a service and then StartBamboo, at this time you will be able to log Bamboo at http://localhost:8085 or http://&lt;dns&gt;:8085 out of the machine, however the first time you will redirected to http://localhost:8085/setup/setupLicense.action where you will be asked for a license key, you can obtain it by clicking in contact Atlassian link under the text box, once you have the key, copy/paste it in the text box and then click **Express Installation** if you will use the H2 default database that is fine for tests or learning but if this is not the case please click in **Custom Installation**, in the first page you will be able of changing the instance name and some location file stuff, in the second page you will need to choose from the embedded database (H2) or an external, you will need to choose the database from the combo box as I have mentiones before PostgreSQL, Oracle, MsSQL or MySQL (it is required to have copied the jdbc jar file), the final task will be configuring the driver, this will depend of of the chosen database, please fill the information related to the connections string as per the database jdbc.

There are more details for the installation, but since this document is oriented to how to set Appvance to work with Bamboo, feel free to look for more documentation in the Atlassian bamboo site.

One more thing to configure is install ant as an executable in Bamboo as below.

 ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/zwZDPopyqGR5doWq-ce79ba9bc28b.png)

The path is the place where ant has been installed.

## Plan Configuration

Native build configuration is based in agents, mainly by its performance and flexibility, Dockers configuration are not covered in the present document

### Create Project

 ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/RHqcQv8iFpOaWDeL-e2712a10c5ff.png)

Give the project a name and a key as an acronym, optionally you can fill the description with some relevant info.

### Create Plan

 ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/tXGzV5LwatF8yLPM-2f8c1d10843c.png)

### Give the plan a name and a key as a acronym , optionally you can fill the description with some relevant info.

### Set the scenario repository

 ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/9MsxZRjyG7m2iLTp-f2f110b3f5a1.png)

Fill the repository credentials fields and the correct branch and click in the Configure Plan button

### Configuring plan

It will be redirected to this form

 ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/jpYIjZUM6qtwRsR9-47256509221d.png)

All the necessary jobs for the scenario execution have been created as ant tasks, please modify the paths as per the environment you are setting up and create the following tasks in this order

 ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/udh1i2sj0uPWJu8U-d843498f289b.png)

 ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/gNhr4qAWTuM5ba7C-2bae57deb8a9.png)

 ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/s09M2A9UbVb9OXKN-3aea267d46d8.png)

 ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/UeZC81aIOZESkbhv-bffcd8e14e3d.png)

 ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/s3xx790crMdFNJzt-b0b66c26d799.png)

 ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/VwpdNDkcYl1KL8Sf-79e920772af8.png)

 ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/2HgURgw6dL1n78Dw-01b621ec4152.png)

 ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/XQKniegVb2xlW6wx-bf6eb56a21b1.png)

**Please take a look to the attached build.xml and crds.json file for a full understanding of the ant targets.**

[build.xml](../../../Resources/Images/GeneralGraphics/build.xml)

[creds.json](../../../Resources/Images/GeneralGraphics/creds.json)

# Linux installation (Debian based)

This installation assumes an UBUNTU 16.04 EC2 machine, follow these commands to install a Linux Bamboo agent.

# 7 zip

sudo apt-get install p7zip-full p7zip-rar

## Oracle JDK 8

sudo add-apt-repository ppa:webupd8team/java  
sudo apt update  
sudo apt install oracle-java8-installer  
sudo apt install oracle-java8-set-default

## ANT

sudo apt install ant

## XVFB, Firefox and Chrome

sudo apt install xvfb firefox

sudo apt install mysql-server  
sudo systemctl status mysql  
sudo mysql\_secure\_installation

wget [https://dl.google.com/linux/direct/google-chrome-stable\_current\_amd64.deb](https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb)  
sudo dpkg -i google-chrome-stable\_current\_amd64.deb

## Adding access globally to there packages

cd /etc/profile.d/

vi ant.sh  
export ANT\_HOME=/usr/local/ant  
export PATH=${ANT\_HOME}/bin:${PATH}

vi java.sh  
export JAVA\_HOME=/usr/lib/jvm/java-8-oracle/jre/bin/java

vi xvfb.sh  
Xvfb :99 -ac -screen 0 1280x1024x24 &amp;

chmod +766 ant.sh java.sh xvfb.sh

## Install Bamboo agent

java -jar atlassian-bamboo-agent-installer-6.7.2.jar http://&lt;dns or ip-address&gt;:8085/agentServer/

<div id="bkmrk-last-updated%3A-july-2">---

Last updated: <span class="mc-variable General.NewDateTimeVariable variable">July 28, 2023</span>

If you have any feedback on this topic, please contact us at <documentation@appvance.ai>

</div>

# Troubleshoot Jenkins Out-of-Memory Failures

Typically default Jenkins setup has a low setup amount of heap memory space (256Mb). This is good enough for medium size scenarios, but bulk scenarios needing to upload a lot of files for the scenario execution might fail with an `OutOfMemoryError: Java heap space` error similar to

<div id="bkmrk-c%3A%5Cprogramdata%5Cjenki" style="border-width:1px;"><div>```
C:\ProgramData\Jenkins\.jenkins\workspace\Smoke\Smoke.xml:221: java.lang.OutOfMemoryError: Java heap space
	at java.base/java.util.Arrays.copyOf(Arrays.java:3745)
```

 </div> </div>In this cases you need to increase the default Java heap memory available to Jenkins server.

To do that please follow following steps if your Jenkins server is Windows. Similar steps needs to be done in case of Jenkins using linux.

1. Log into your Jenkins server via RDP or SSH if it is ubuntu. You will need credentials for this.
2. Locate the file jenkins.xml file. Location may vary depending of operating system. In case of windows can find it normally at C:\\Program Files\\Jenkins.
3. Edit the jenkins.xml file in a test editor to increase the value of the -Xmx java parameter from   
    -Xmx256m to -Xmx2048m or more
    
     ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/snUty4ZPIEQHYKCI-b799dca58a39-png.jpg)
4. Add a environment variable with JAVA\_OPTS name and value -Xmx2048Mb
    
     ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/4cNQcvZ7NlWuqd9e-5f296ceb429d-png.jpg)
5. Open the TaskManager app and select Services Tab. Select java.exe for Jenkins process and stop it and restart it.
    
     ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/h5qxRzYbrz6rHxOS-b63f45092205.png)
 


<div id="bkmrk-last-updated%3A-june-2">---

Last updated: <span class="mc-variable General.NewDateTimeVariable variable">June 26, 2023</span>

If you have any feedback on this topic, please contact us at <documentation@appvance.ai>

</div>

# CI/CD Dashboard Credential Encryption

This functionality is to encrypt credentials files used for both CICD’s (s3 and git) .

## Plain Text Files

<div class="codeSnippet" id="bkmrk-copy-controller.json"><div class="codeSnippetCaption">controller.json (template)

 </div><div class="codeSnippetBody">```
{<br></br>    "controller": {<br></br>        "url": "http://<replace_IP>:8080",<br></br>        "instances": ["<replace_instanceID>"],<br></br>        "ec2Creds": "ec2.creds",<br></br>        "timeOut": 180,<br></br>        "username": "<replace_username>",<br></br>        "password": "<replace_password>",<br></br>        "workFolder": "<replace_path/to/AIQ/resources>"<br></br>    }<br></br>}
```

 </div> </div><div class="codeSnippet" id="bkmrk-copy-githttp.json-%28t"><div class="codeSnippetCaption">githttp.json (template)

 </div><div class="codeSnippetBody">```
{<br></br>    "username": "<replace_username>",<br></br>    "password": "<replace_password>",<br></br>    "repository": "http://<replace_url_to_repository>.git",<br></br>    "branch": "<replace_branch>",<br></br>    "sshPhrase": "",<br></br>    "sshKey": ""<br></br>}
```

 </div> </div><div class="codeSnippet" id="bkmrk-copy-ec2creds.creds-"><div class="codeSnippetCaption">ec2creds.creds (template)

 </div><div class="codeSnippetBody">```
AWS_ACCESS_KEY_ID=<replace_awsKEYIDE><br></br>AWS_SECRET_ACCESS_KEY=<replace_awsSecretAccessKey>
```

 </div> </div>## AIQ - Encryption UI

Under **Global Options** | **Preferences**

### Git Credentials

 ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/oxfjEatxgqcEDi13-98dc5f4ad6b8.png)

Click open to load the Git creds file

 ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/hqhKVXtquytvJUYy-52d2eba3c297.png)

Click save to encrypt the file

<div class="expand-container conf-macro output-block" id="bkmrk-githttp.json-%28encryp"><div class="expand-control" id="bkmrk-githttp.json-%28encryp-1"><span class="expand-control-text">gitHttp.json (encrypted)</span> </div><div class="expand-content expand-hidden" id="bkmrk-vcgam99c3ghqwob%2Fuoxx">VCgam99C3GHqwOb/UoxxRJv92Q+kIGAq9/wegy8PX5IgQfO5bDmA/SkGB6Ybv4AG/O6MVVj+g5a6rOS8DNx661SA5cs2AAc2yLuWaZTljZ0RAvNhEzZVCg7Zr7HeMy867hhPGjXOnx+0+CnFswh3BK4slK8cLkNpKobOyKn6kusubZLtUV5fxKZN5+nj3VepsFTyh7+XQ3JQqYRghXaSFBhLSHiZCtvSyN2eAbEmIW8=

 </div> </div>---

### Ec2 Credentials

Click open to load the ec2 creds file

 ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/6yJkFA2VDP902EOT-9beaa0521893.png)

Click save to encrypt the file

 ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/AmxwfeE4gd1JLCce-ce158a40bbe8.png)

<div class="expand-container conf-macro output-block" id="bkmrk-ec2creds.creds-%28encr"><div class="expand-control" id="bkmrk-ec2creds.creds-%28encr-1"><span class="expand-control-text">ec2creds.creds (encrypted)</span> </div><div class="expand-content expand-hidden" id="bkmrk-84zvbqscfojikfir4mlw">84zVbQScFoJikfiR4mLwKiUzmUFnX10g9lT9R1hJtRFouXBrS9vIUdYZpqA0cy8l0t93OMa/Mt7egmCnBaXKdPRVxmPVu2Y4wZgvzkLZb5MlPQIgUIc0OAqo9pdiGvR1VaUgal5rO7CSoIwkL/u2hR4nTVDs3j0lcRc6L0L2fKU=

 </div> </div>---

### AIQ Credentials 

Click open to load the AIQ creds file

 ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/Lhf8RcPaenXbS38O-720f58432d4c.png)

Click save to encrypt the file

 ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/Jo6cXDJLo8tnWLT3-73aeb48800e7.png)

<div class="confluence-information-macro confluence-information-macro-information conf-macro output-block" id="bkmrk-the-work-folder-fiel"><div class="confluence-information-macro-body">the **Work Folder** field is optional on recent releases, and it will be removed soon from this page.

 </div> </div><div class="expand-container conf-macro output-block" id="bkmrk-aiq-creds-%28encrypted"><div class="expand-control" id="bkmrk-aiq-creds-%28encrypted-1"><span class="expand-control-text">AIQ creds (encrypted)</span> </div><div class="expand-content expand-hidden" id="bkmrk-etr9lyzbck7r2ebsp%2Fo9">etr9LYZBcK7r2eBsp/O98enfcdiTk/wx8UzqS7eOQeiOxB2qMkjYaanuhg35jcHjII+CXHbt8SB7hwW4WfY3yp0EtMhcSqtQqbNuVJ6HFY1z0j36no/fhZeRooCNte58MDLZTPOXr8UaH9MHc5yW0bQR1olrcRmEQ6CeFJ6AoCC5x6Sz0k/bpf6j8pVzZh4/afZqQqoJ4NAJJNlWZppVwBI3hOVhY5Zg41aKRDjmA/seoBOtVgWkACe4WT5h0L3SfwFTzOhn2JudDFTslDcODw==

 </div> </div>### Setting properties into the build.xml

Using CICD GIT

<div class="code panel pdl conf-macro output-block" id="bkmrk-%3Cproperty-name%3D%22gitc" style="border-width:1px;"><div class="codeContent panelContent pdl">```
<property name="gitCredentials" value="githttp.json" />
```

 </div> </div>Access to AIQ

<div class="code panel pdl conf-macro output-block" id="bkmrk-%3Cproperty-name%3D%22aiqc" style="border-width:1px;"><div class="codeContent panelContent pdl">```
<property name="aiqCreds" value="creds.json" />
```

 </div> </div>Using CICD s3

<div class="code panel pdl conf-macro output-block" id="bkmrk-%3Cproperty-name%3D%22awsc" style="border-width:1px;"><div class="codeContent panelContent pdl">```
<property name="awsCredentials" value="ec2.creds" />
```

 </div> </div>### CICD Git ( clone and push to repository)

<div class="code panel pdl conf-macro output-block" id="bkmrk-%3Ctaskdef-name%3D%22downl" style="border-width:1px;"><div class="codeContent panelContent pdl">```
<taskdef name="downloadRepository" classname="com.appvance.ci.git.DownloadRepository">	<classpath refid="RestClientLibPath" /></taskdef><downloadRepository folder="${localEmpyFolder}" credentials="${gitCredentials}" />			
< ....... Methods to run scenarios, Goes here .......>	
<taskdef name="commitReports" classname="com.appvance.ci.git.UploadRepository">	<classpath refid="RestClientLibPath" /></taskdef><commitReports 
<credentials="${gitCredentials}" folder="${localEmpyFolder}" customer="${customer}" /> 
```

 </div> </div><div id="bkmrk-last-updated%3A-march-">---

Last updated: <span class="mc-variable General.NewDateTimeVariable variable">March 25, 2024</span>

If you have any feedback on this topic, please contact us at <documentation@appvance.ai>

</div>

# Encrypting EC2 Cloud Configuration Files using API Calls

There are now options in AIQ UX to encrypt the files needed for CICD pipeline jobs as seen in the screenshot below, but sometimes you need to automate the process of encrypting the AWS credentials file as those credentials often have rotation intervals. So below the screenshot shows there is a process for creating this encryption using RESTful API calls.

Sometimes you need to be able to encrypt files in an automated way using CURL or service suite files to rotate the AWS credentials. Here we list two ways of achiving the same using AIQ Rest API calls.

 ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/5auzBnvT0X0rn3AA-5c3220935f19.png)

## EC2 Cloud Configuration Sample

This is a sample of the unencrypted structure.

<div class="codeSnippet" id="bkmrk-copy-%3C%3Fxml-version%3D%22"><div class="codeSnippetBody">```
<span style="color:#969896;"><?xml version="1.0" encoding="UTF-8"?></span> <br></br><span style="color:#63a35c;"><cloud <span style="color:#795da3;">type</span><span style="color:#df5000;">="EC2"</span> <span style="color:#795da3;">version</span><span style="color:#df5000;">="1"</span>></span> <span style="color:#63a35c;"><config-param <span style="color:#795da3;">key</span><span style="color:#df5000;">="AIQProtocol"</span> <span style="color:#795da3;">value</span><span style="color:#df5000;">="http"</span>/></span> <br></br>    <span style="color:#63a35c;"><config-param <span style="color:#795da3;">key</span><span style="color:#df5000;">="AIQPort"</span> <span style="color:#795da3;">value</span><span style="color:#df5000;">="8080"</span>/></span> <br></br>    <span style="color:#63a35c;"><config-param <span style="color:#795da3;">key</span><span style="color:#df5000;">="Ec2Timeout"</span> <span style="color:#795da3;">value</span><span style="color:#df5000;">="25"</span>/></span> <br></br>    <span style="color:#63a35c;"><config-param <span style="color:#795da3;">key</span><span style="color:#df5000;">="AccountName"</span> <span style="color:#795da3;">value</span><span style="color:#df5000;">="appvance"</span>/></span> <br></br>    <span style="color:#63a35c;"><config-param <span style="color:#795da3;">key</span><span style="color:#df5000;">="AWSKey"</span> <span style="color:#795da3;">value</span><span style="color:#df5000;">="DUMMYDUMMYDUMMYDUMMY"</span>/></span> <br></br>    <span style="color:#63a35c;"><config-param <span style="color:#795da3;">key</span><span style="color:#df5000;">="AWSSecretAcessKey"</span> <span style="color:#795da3;">value</span><span style="color:#df5000;">="dummDUMMYDUMMYDUMMYDUMMYDUMMYDUMMY/></span></span> <br></br><span style="color:#63a35c;"><span style="color:#df5000;">    </span><config-param <span style="color:#795da3;">key</span><span style="color:#df5000;">="AMI"</span> <span style="color:#795da3;">value</span><span style="color:#df5000;">="ami-0dfc3da39bb6f571c"</span>/></span> <br></br>    <span style="color:#63a35c;"><config-param <span style="color:#795da3;">key</span><span style="color:#df5000;">="InstanceType"</span> <span style="color:#795da3;">value</span><span style="color:#df5000;">="t3a.xlarge"</span>/></span> <br></br>    <span style="color:#63a35c;"><config-param <span style="color:#795da3;">key</span><span style="color:#df5000;">="KeyPair"</span> <span style="color:#795da3;">value</span><span style="color:#df5000;">="AppvanceOps"</span>/></span> <br></br>    <span style="color:#63a35c;"><config-param <span style="color:#795da3;">key</span><span style="color:#df5000;">="Security"</span> <span style="color:#795da3;">value</span><span style="color:#df5000;">="sg-00d4ef05804c7a117"</span>/></span> <br></br>    <span style="color:#63a35c;"><config-param <span style="color:#795da3;">key</span><span style="color:#df5000;">="AWSRegion"</span> <span style="color:#795da3;">value</span><span style="color:#df5000;">="us-west-1.ec2.amazonaws.com"</span>/></span> <br></br>    <span style="color:#63a35c;"><config-param <span style="color:#795da3;">key</span><span style="color:#df5000;">="vpcId"</span> <span style="color:#795da3;">value</span><span style="color:#df5000;">=""</span>/></span> <br></br>    <span style="color:#63a35c;"><config-param <span style="color:#795da3;">key</span><span style="color:#df5000;">="subnetId"</span> <span style="color:#795da3;">value</span><span style="color:#df5000;">=""</span>/></span> <br></br><span style="color:#63a35c;"></cloud></span>
```

 </div> </div>## Using CURL

By issuing the following sequence of CURL commands in a Mac/ubuntu terminal you can grab the resulting encrypted from the resulting JSON response.

Please replace the AIQ controller DNS and the AIQ user credentials, as well as the actual XML text that you want to encrypt.

<div class="codeSnippet" id="bkmrk-copy-curl--c-cookies"><div class="codeSnippetBody">```
<br></br>curl -c cookies.txt -X POST -d "username=appvance&password=appvance" http://localhost:8080/AppvanceServer/rest/admin/logginForServices -H "ContentType: application/x-www-form-urlencoded"<br></br><br></br>curl -b cookies.txt -X POST -d "content=Replace here the xml of the ec2 cloud file" http://localhost:8080/AppvanceServer/rest/file/encryptFileContent - H "Content-Type:  application/x-www-form-urlencoded"
```

 </div> </div>For Windows OS, you must to modify `curl` to `curl.exe` in the above code.

The response for the second curl (`encryptFileContent`) will be similar to

<div class="codeSnippet" id="bkmrk-copy-%7B%22data%22%3A-%22pma9q"><div class="codeSnippetBody">```
{<br></br>"data": "pma9QDLKQn1OMlkce6L4AHwwW8d/xS3yZuvdeUTPrnCv4s3kNSGzTGicu4tu<br></br>CTvusxiUfNSVL7A6Z5Br3/lW248GS3j8WA05EF7w9sWogHyC5L2JLo/rHAJqb6qI/NGq<br></br>4ZE9hy3sobAKkVq7sadFUH3Fg/Pz+OCD94J/PR5X9CbZ9mJbcctEh73+kqZLf8v2lrgC<br></br>YibSs957WJUub0sPC3E9XDdgjT53y0GafA8xiIbHbDxaEL4WikoFqglzjLAvkY3h4u/<br></br>Pcb412XjVNwOUCkx51ML294jJRJs7ZQgFYbunLOxOPhJ2R9xzbaLjqiBXaiic9VvNmb<br></br>gJX5RBdcWnw4js6/+wDFkTSHgHrht6KxmwUG7ASghNz8pujjf4IOZX2JGPerxqAfD+<br></br>+M5ilKf5f2buwYZiBQBFyNCW9F7H9Rwu+y2q2M73NZ6WIxzCmQfMeL+ZHHWSFTxV1O<br></br>eSPdeaXCtSDwWrY7eKWS0EvQYtPmKRDwiAnkInTDZSBDHnl2WNnZTAY1x/izUdSlL7Bld<br></br>jV0m9X3jP41zIEiUuo6wXUqx5BhLT7a22lVQiSfIK4DZqENvjMDrnY0dHBLi2mX40k<br></br>bALfsxrYjj3cm1PI3cVkdUs1skM0qOL8ZsOZnzmqkUTshoPoxjKvmN32KaN9Py6Uda<br></br>oEOHBIekmR7K2cottKvbyBuPQlWSbU8/W2/bMWxO3UDPtHDvYiVHLQax+XhuNeOOp5<br></br>Lfai9jWED3WAdFXXy7KpXJXh6dyx0dKTf1SI+F8IR4w4OPJcG2kSSuE0yzbH0bjxXD<br></br>KiFiozwMYSJrWQobqBHkdX/4V1nw2vUHjI6FASt3c3aWId417LLkZzEFQxiv3bfEAn<br></br>SwkCTp0raw2jW/O4aHpgpDwv0YqCtnHPZHN0tvkOI8Jd0Prf2fMnRIdzjj+8lWGOd<br></br>1UtXPgIZPRdxXhippZA8Nejom0cjOsQt+NrW8YE4c6o/39JRW56e9M3Un6Kf/MWq1k<br></br>4a62HQBChGHAF81+6OWc7HGzN+HSVPWPoRQv8Rgk+ULAcX+2U2mO4w==",<br></br>"success": true<br></br>}
```

 </div> </div>Just grab the data contents in the above JSON and save it as a .cloud file name.

## Using ServiceSuite

Here is a service suite script that will make the same calls seen above in the CURL example:

<div class="codeSnippet" id="bkmrk-copy-%2F%2F-modify-this-"><div class="codeSnippetBody">```
// MODIFY THIS TO POINT TO YOUR CONTROLLER<br></br>var $controller = "http://localhost:8080"<br></br>var $username ="appvance";<br></br>var $password ="appvance";<br></br>  <br></br>// THIS VARIABLE CAN BE USED TO CONSTRUCT THE EC2 CLOUD XML AS A STRING. PROVIDED BELOW SAMPLE DATA:<br></br>var ec2CloudText = '<?xml version="1.0" encoding="UTF-8"?> <cloud type="EC2" version="1"> <config-param key="AIQProtocol" value="http"/> <config-param key="AIQPort" value="8080"/> <config-param key="Ec2Timeout" value="25"/> <config-param key="AccountName" value="appvance"/> <config-param key="AWSKey" value="DUMMYOWGVPHYCUXYASDF"/> <config-param key="AWSSecretAcessKey" value="dummyxqmHB6IFeJ3KAar7zh3l7Id4AeQR8Uasdf"/> <config-param key="AMI" value="ami-0dfc3da39bb6f571c"/> <config-param key="InstanceType" value="t3a.xlarge"/> <config-param key="KeyPair" value="AppvanceOps"/> <config-param key="Security" value="sg-00d4ef05804c7a117"/> <config-param key="AWSRegion" value="us-west-1.ec2.amazonaws.com"/> <config-param key="vpcId" value=""/> <config-param key="subnetId" value=""/> </cloud>';<br></br><br></br>// LOGIN<br></br>var data = new formData();<br></br>data.put("username",$username);<br></br>data.put("password",$password); <br></br>var resp = post($controller + "/AppvanceServer/rest/admin/logginForServices",data);<br></br>log(resp.getDataString());<br></br><br></br><br></br>// ENCRYPT DATA<br></br>var url = $controller + '/AppvanceServer/rest/file/encryptFileContent';<br></br>var data = new formData();<br></br>data.put("content", ec2CloudText);<br></br>var json = JSON.parse(post(url, data).getDataString());<br></br>log("Encryption success: "+json.success);<br></br>var encryptedData = json.data;<br></br>log("Encrypted text:\n"+encryptedData);
```

 </div> </div>After executing this script the encrypted contents are in the encryptedData variable. Then you can use writeText service suite command to write it to a file in your repository.

 ![](https://docs.appvance.net/uploads/images/gallery/2026-07/scaled-1680-/YgHxA0OSKjk5X1PU-df6cfee5f958.png)

<div id="bkmrk-last-updated%3A-april-">---

Last updated: <span class="mc-variable General.NewDateTimeVariable variable">April 28, 2025</span>

If you have any feedback on this topic, please contact us at <documentation@appvance.ai>

</div>