Updating CICD Dashboard Code Location for AIQ 5.x.x
RecommendedUpdating guidance
CICD ThisDashboard articleCode isLocation version-specific tofor AIQ 5.x.x
environments.
If Useyour itCICD onlydashboard whenwas maintainingcreated with a CICD client downloaded from an AIQAppvance 5.xS3 CI/CDservice., dashboardyou ormust migrating an older dashboard configuration. For newer environments, confirmfollow the currentupdate dashboardprocess andto repositorypoint structureyour beforeCICD applyingbuild.xml thesefile steps.
Before changing code locations
Confirm the exactyour AIQversion,controllerdashboardCICDversion,client.repository,The
branch,Appvanceand deployment path.Back up the current dashboard configuration and document the previous code location.Check pipeline variables, environment files, service accounts, and artifact paths.Confirm permissions for the CI/CD runner and anyS3 service thatreadscontains this code will be removed in the near future. If you have not performed the update for your 5.0.0 release your CICD dashboardcode.will not work.Update build.xml Process
-
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.jarto the folder where you have yourbuild.xmlfile. Do replace values between<>with your correct values.cd <folder-with-build.xml-file>wget http://<aiq controller domain>:8080/UI/container/updateGetURL.jarjava -jar updateGetURL.jar <controller-domain-or-ip> build.xmlValue 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
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
Copy the downloaded updateGetURL.jar file to the same folder where your build.xml file is located.
Execute the following command in a non-productioncmd environmentprompt:
java
Validation-jar checklist
updateGetURL.jar Run<controller-domain-or-ip> build.xml
Value for <controller-domain-or-ip> can be similar to any of the CI/CDfollowing:
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
After executing the above commands, open your build.xml file in a text editor and verify that publishesa orline refreshessimilar to the dashboard.
<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 dashboardcontroller.json readsfile.
Push the new code location.
build.xml Troubleshooting
In missingcase files,of permissionany errors,issues or stale cache references.
updateGetURL.jar, Obsolescence note: Ifedit the AIQbuild.xml 5.xfile dashboardto ishave nothe longerget inline use,to markhave thisthe pagesrc property use your controller to download the client such as legacy or consolidate the relevant migration note into the active CI/CD documentation.:
<get dest="${lib}/RestClient.jar" src="http://<controller-domain>:8080/UI/container/AppvanceCIClientWithDeps.jar"/>
Last updated: OctoberMarch 5,17, 20262024
If you have any feedback on this topic, please contact us at documentation@appvance.ai