About the Jenkins Files
UseAbout the files and from where to download them
All the files related to the CICD integration can be downloaded from the >GITRepo, Please check with an Appvance team member to get access to the Repository.
Following are the files that are available in the folder and what configuration changes need to be made.
Build.xml
Build.xml files hold the configuration settings and also all the defined ANT tags.
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 page to explainset whatup the Jenkinsenvironment.
executeScenario when- AIQExecutes testthe mentioned scenarios.
stopNode - Stops the instance once the execution is triggereddone.
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 CIBlueprintReport.html pipeline.which is a human-readable report.uploads the smoke test report, timing report, and a BlueprintReport.html which is 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 surpasses a user-defined parameter.
generateRegressionScenario - Generates the Regression scenarios.
Details about all the ant targets can be found in CICD- AntTags.
Validationcontroller.json workflowFile
IdentifyBasically has details about the
Jenkinsfilecontrollerormachinehelperandscriptthe credentials. Above can be usedbywhen we have theproject.ConfirmEC2requiredsetup.parametersWhen
suchweasare running AIQproject,localscenario,builds,environment,instances in the 2nd line could be replaced with "URL" andresultthehandling.Runfull URL of thejobAIQ 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 your tests are run in
athenon-productionAWSfoldercloud.AWS_ACCESS_KEY_ID=<replace_awsKEYIDE>
AWS_SECRET_ACCESS_KEY=<replace_awsSecretAccessKey>
before adopting it for scheduled execution.
Last updated: SeptemberJuly 24,18, 20262023
If you have any feedback on this topic, please contact us at documentation@appvance.ai