9.5 - Continuous Integration

Continuous Integration — Knowledge Base articles.

Continuous Integration Knowledge Base Overview

Last updated: October 16, 2026

AIQ CI/CD Overview

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

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

<get src="https://[aiq-controller-domain]:8443/UI/container/AppvanceCIClientWithDeps.jar" dest="${lib}/RestClient.jar"/>
  

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

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:

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

Set the Build Environment to use Ant targets:

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.

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


Some available Target Descriptions

Ant Task

Description

Parameters

createBlueprint

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.

template
aiqCreds
dataset
buildVersion
outputFolder
elementName
requestMaxDurationconsoleDetails
reportStatusCode
consoleDetails
forceNewScan
createScenariosDashboard Create the scenario HTML and configuration files
(needs executeScenario target to be executed first)
elementName (name of scenario)
resultsFolder
reportFolder
environment
product ("Name of product")
executionType ("scenarios")
buildVersion
consoleDetails
bucketBase
aiqCreds
startNode It starts an AWS EC2 instance to be used as an Appvance IQ test node. Writes the consoleDetails file with the information of the started node
stopNode Stops an AWS EC2 instance used as an Appvance IQ test node. Gets the data from the consoleDetails file.

checkScenarioResults

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.

maxFailures
minSuccessPercentage
reports (destination folder)

checkBlueprintResults Verifies the results of the AISG scanning against parameters. Add -1 as parameter value to ignore that metric.

maxFailingRequests
maxValidationFailures
minValidationRatio

reportUpload

Uploads to the Dashboard all the reports gathered from the AISG creation process.
(called by createScenariosDashboard and blueprintDashboard calls)

buildVersion
credentials
bucketBase
reportFolder
executionType ("blueprints" or "scenarios")
environment ( "QA1", "QA2", "QAn", "Production")product ( i.e.: CustormerSite.com to test )

executeScenario

Ant Task used to execute an Appvance IQ scenario. Use this to run your must-have validation scripts.

scenario
aiqCreds
consoleDetails
dir

blueprintDashboard

Creates the AISG HTML dashboard with the AISG execution results
(needs createBlueprint target to be executed first)

credentials
customer
bucketBase
executionType ("blueprints" or "scenarios")
environment ( "QA1", "QA2", "QAn", "Production")product ( i.e.: CustormerSite.com to test )

generateRegressionScenario

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)

projectName
fileConfig
aiqCreds
logsRemoteFolder
outputFolder

UpdateJiraTicket This will add a comment to an existing Atlassian Jira ticket with results of the scenario execution or the AISG process.

jiraCreds
reportFolder
ticketId
maxFailures
minSuccessPercentage
jiraApiVersion

Report Creates a Test Scenario/Scripts report resultsFolder;
projectName;
buildNumber;
branch;
reportFolder;
FetchScenarioResults Save scenario results in a JUnit format, using the resultFolder parameter

aiqCreds
scenario
scenarioDir
consoleDetails
resultsFolder
stopOnFailure

S3Download Downloads a folder from S3

credentials
bucketBase
localFolder
remoteFolder


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


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 integrationusing our Gitlab and Amazon AWS ITand 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 \
-F ref=ENVIRONMENT \
https://gitlab.com/api/v4/projects/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 \
-F token=TOKEN \
-F ref=Staging \
https://gitlab.com/api/v4/projects/9504048/trigger/pipeline

The result of the call is a JSON that looks like

{
“id”: 39791847,
“sha”: “c656bbbbc5844f342a677d28c3b21c1ad3c6e10ad”,
“ref”: “QA4”,
…
}

The important element is the “id”. Extract theidfrom 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

WhereACCOUNTis the client name,PROJECT_NAMEis the Project Name,ENVIRONMENTcan be for example QA4, Alpha, Staging, etc., andBUILD_IDcomes 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 thecall if the scenario has not yet finished executingis 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:

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

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

Field Description
BUCKET customer's space in s3
PRODUCT name of product
ENVIRONMENT can be for example QA4, Alpha, Staging, etc
BUILD_ID identifier for the jenkins last execution for this report
EXECUTION_TYPE can be "blueprints" or "scenarios"

Last updated: March 13, 2024

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

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"/>


Last updated: March 17, 2024

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

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, 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.

Create a Plan

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

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

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

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.

Updating necessary dependencies to execute different AppvanceRestClient ant tasks.

Scenario execution as it has been stated in the build.xml file

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

  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, later it will be necessary to reference it in the Bamboo configuration.


Last updated: July 21, 2023

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

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

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 > /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:

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


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

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

You must be authorized on GitHub with the public key.

Create a new repository.

Clone repo.

Open the terminal on his machine.

Change directory.

Create files or paste some code into the repo

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 }}

Copy code from above example main.yml and paste into, or use example from GitHub

GitHub created directory for you .github/workflows/

For more information visit https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-ant


Last updated: June 26, 2023

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

GitHub Action CICD

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

The following files are available in the folder. The following information details the configuration changes need to be made.

Build.xml

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

Some of the ant tags are explained below:

Details about all the ant targets can be found in CICD- AntTags.

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.

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

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=<replace_awsKEYIDE>

AWS_SECRET_ACCESS_KEY=<replace_awsSecretAccessKey>

Required File Changes

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

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

name: CI-Create-Dashboard

on:
  push:
    branches:
      - master
  workflow_dispatch:

env:
  REGISTRY: &lt;name of registry&gt;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 &lt;registry&gt;        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 }}
 

                                                

Click Run Workflow


Last updated: July 03, 2023

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

How to consume scenario into the dashboard


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

In order to this, let’s go to job 02 and select configure from dropdown:

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

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

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

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

iii. Copy the below content to the config.json file.

Input S3 > 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.

Input S3 > 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

Input GIT > 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.

Input GIT > 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

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>click on Explore

xtOXVoEW6twRFwoA-3f58b8785ed7.png 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 workspaceshttps://computingforgeeks.com/automatically-clean-up-jenkins-workspace-after-builds-complete/#:~:text=Login%20to%20Jenk[…]20tab%20below%20the%20page

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.

    variables:
       CONTROLLER: "http://10.70.10.1:8080"
       SCENARIO: "REPOSITORY/Appvance/scenarios/test.scenario"
    script:
       - perl -pi -e 's/"url": "[^"]*"/"url": "$CONTROLLER"/' controller.json
       - export CONTROLLER=$CONTROLLER
       - ant createScenariosDashboard -Dscenario=$SCENARIO

    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.

    <target name="deps" depends="init">
        <mkdir dir="${lib}"/>
        <get src="${controller}/UI/container/AppvanceCIClientWithDeps.jar" dest="${lib}/RestClient.jar"/>
    </target>
  4. When triggering the pipeline manually or in the pipeline scheduler, provide the new desired value for the SCENARIO and CONTROLLER variables.


Last updated: September 25, 2024

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

Runing Appvance IQ on Windows as a Service

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:

Download and Install Autologon

  1. Download Autologon from Microsoft here: Download 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 on the Microsoft site for more information.

Active Directory considerations:

  1. Open Autologon.exe (64 bit). The Autologon - Sysinternals window appears.

  2. Enter the user’s password and click Enable.

  3. Open Task Scheduler with administrative privileges, click Action and select Create Basic Task. The Create Basic Task Wizard appears.

  4. Enter a name in the Name box (such as AIQ or Appvance) and click NextThe Task Trigger list appears

  5. Select When I log on and click Next

  6. The Action list appears.

  7. Select Start a Program and click Next

  8. The Start a Program configuration appears.

  9. Click Browse.

  10. Browse to and select <aiq-path>/TestNode/startup.bat and click Open.

  11. IMPORTANT: Also enter the <aiq-path>/TestNode/ path in the Start in box and click Next.

  12. Select Open the Properties dialog for this task when I click Finish.

  13. Click FinishThe Properties dialog appears.

  14. Select Run only when user is logged on.

  15. Check Run with highest privileges.

  16. Click Settings.

  17. Uncheck the Stop the task if it runs longer than option.

  18. Click OK.

  19. When prompted, enter the service username and password to apply the changes and click OK.

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.


Last updated: March 26, 2024

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

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.
  2. Apache Ant build scripting languaje, please follow the installation guide in 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 this requirement will be necessary only in the case of MySQL database, it does not matter if the database is installed locally of remotely, it can be obtained in 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.

Bamboo installation

The package can be downloaded from 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, 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://<dns>: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.

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

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

Create Plan

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

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


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



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

build.xml

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
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 &

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

Install Bamboo agent

java -jar atlassian-bamboo-agent-installer-6.7.2.jar http://<dns or ip-address>:8085/agentServer/


Last updated: July 28, 2023

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

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

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)

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

  4. Add a environment variable with JAVA_OPTS name and value -Xmx2048Mb

  5. Open the TaskManager app and select Services Tab. Select java.exe for Jenkins process and stop it and restart it.



Last updated: June 26, 2023

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

CI/CD Dashboard Credential Encryption

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

Plain Text Files

controller.json (template)

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

githttp.json (template)

{
    "username": "<replace_username>",
    "password": "<replace_password>",
    "repository": "http://<replace_url_to_repository>.git",
    "branch": "<replace_branch>",
    "sshPhrase": "",
    "sshKey": ""
}

ec2creds.creds (template)

AWS_ACCESS_KEY_ID=<replace_awsKEYIDE>
AWS_SECRET_ACCESS_KEY=<replace_awsSecretAccessKey>

AIQ - Encryption UI

Under Global Options | Preferences

Git Credentials

Click open to load the Git creds file

Click save to encrypt the file

gitHttp.json (encrypted)

VCgam99C3GHqwOb/UoxxRJv92Q+kIGAq9/wegy8PX5IgQfO5bDmA/SkGB6Ybv4AG/O6MVVj+g5a6rOS8DNx661SA5cs2AAc2yLuWaZTljZ0RAvNhEzZVCg7Zr7HeMy867hhPGjXOnx+0+CnFswh3BK4slK8cLkNpKobOyKn6kusubZLtUV5fxKZN5+nj3VepsFTyh7+XQ3JQqYRghXaSFBhLSHiZCtvSyN2eAbEmIW8=


Ec2 Credentials

Click open to load the ec2 creds file

Click save to encrypt the file

ec2creds.creds (encrypted)

84zVbQScFoJikfiR4mLwKiUzmUFnX10g9lT9R1hJtRFouXBrS9vIUdYZpqA0cy8l0t93OMa/Mt7egmCnBaXKdPRVxmPVu2Y4wZgvzkLZb5MlPQIgUIc0OAqo9pdiGvR1VaUgal5rO7CSoIwkL/u2hR4nTVDs3j0lcRc6L0L2fKU=


AIQ Credentials

Click open to load the AIQ creds file

Click save to encrypt the file

the Work Folder field is optional on recent releases, and it will be removed soon from this page.

AIQ creds (encrypted)

etr9LYZBcK7r2eBsp/O98enfcdiTk/wx8UzqS7eOQeiOxB2qMkjYaanuhg35jcHjII+CXHbt8SB7hwW4WfY3yp0EtMhcSqtQqbNuVJ6HFY1z0j36no/fhZeRooCNte58MDLZTPOXr8UaH9MHc5yW0bQR1olrcRmEQ6CeFJ6AoCC5x6Sz0k/bpf6j8pVzZh4/afZqQqoJ4NAJJNlWZppVwBI3hOVhY5Zg41aKRDjmA/seoBOtVgWkACe4WT5h0L3SfwFTzOhn2JudDFTslDcODw==

Setting properties into the build.xml

Using CICD GIT

<property name="gitCredentials" value="githttp.json" />

Access to AIQ

<property name="aiqCreds" value="creds.json" />

Using CICD s3

<property name="awsCredentials" value="ec2.creds" />

CICD Git ( clone and push to repository)

<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}" /> 

Last updated: March 25, 2024

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

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.

EC2 Cloud Configuration Sample

This is a sample of the unencrypted structure.

<?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="DUMMYDUMMYDUMMYDUMMY"/> 
    <config-param key="AWSSecretAcessKey" value="dummDUMMYDUMMYDUMMYDUMMYDUMMYDUMMY/> 
    <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>

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.


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"

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"

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

{
"data": "pma9QDLKQn1OMlkce6L4AHwwW8d/xS3yZuvdeUTPrnCv4s3kNSGzTGicu4tu
CTvusxiUfNSVL7A6Z5Br3/lW248GS3j8WA05EF7w9sWogHyC5L2JLo/rHAJqb6qI/NGq
4ZE9hy3sobAKkVq7sadFUH3Fg/Pz+OCD94J/PR5X9CbZ9mJbcctEh73+kqZLf8v2lrgC
YibSs957WJUub0sPC3E9XDdgjT53y0GafA8xiIbHbDxaEL4WikoFqglzjLAvkY3h4u/
Pcb412XjVNwOUCkx51ML294jJRJs7ZQgFYbunLOxOPhJ2R9xzbaLjqiBXaiic9VvNmb
gJX5RBdcWnw4js6/+wDFkTSHgHrht6KxmwUG7ASghNz8pujjf4IOZX2JGPerxqAfD+
+M5ilKf5f2buwYZiBQBFyNCW9F7H9Rwu+y2q2M73NZ6WIxzCmQfMeL+ZHHWSFTxV1O
eSPdeaXCtSDwWrY7eKWS0EvQYtPmKRDwiAnkInTDZSBDHnl2WNnZTAY1x/izUdSlL7Bld
jV0m9X3jP41zIEiUuo6wXUqx5BhLT7a22lVQiSfIK4DZqENvjMDrnY0dHBLi2mX40k
bALfsxrYjj3cm1PI3cVkdUs1skM0qOL8ZsOZnzmqkUTshoPoxjKvmN32KaN9Py6Uda
oEOHBIekmR7K2cottKvbyBuPQlWSbU8/W2/bMWxO3UDPtHDvYiVHLQax+XhuNeOOp5
Lfai9jWED3WAdFXXy7KpXJXh6dyx0dKTf1SI+F8IR4w4OPJcG2kSSuE0yzbH0bjxXD
KiFiozwMYSJrWQobqBHkdX/4V1nw2vUHjI6FASt3c3aWId417LLkZzEFQxiv3bfEAn
SwkCTp0raw2jW/O4aHpgpDwv0YqCtnHPZHN0tvkOI8Jd0Prf2fMnRIdzjj+8lWGOd
1UtXPgIZPRdxXhippZA8Nejom0cjOsQt+NrW8YE4c6o/39JRW56e9M3Un6Kf/MWq1k
4a62HQBChGHAF81+6OWc7HGzN+HSVPWPoRQv8Rgk+ULAcX+2U2mO4w==",
"success": true
}

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:

// MODIFY THIS TO POINT TO YOUR CONTROLLER
var $controller = "http://localhost:8080"
var $username ="appvance";
var $password ="appvance";
  
// THIS VARIABLE CAN BE USED TO CONSTRUCT THE EC2 CLOUD XML AS A STRING. PROVIDED BELOW SAMPLE DATA:
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>';

// LOGIN
var data = new formData();
data.put("username",$username);
data.put("password",$password); 
var resp = post($controller + "/AppvanceServer/rest/admin/logginForServices",data);
log(resp.getDataString());


// ENCRYPT DATA
var url = $controller + '/AppvanceServer/rest/file/encryptFileContent';
var data = new formData();
data.put("content", ec2CloudText);
var json = JSON.parse(post(url, data).getDataString());
log("Encryption success: "+json.success);
var encryptedData = json.data;
log("Encrypted text:\n"+encryptedData);

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.


Last updated: April 28, 2025

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