Skip to main content

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.

to

Before changing code locations

  • Confirm the exactyour AIQ version,controller dashboardCICD version,client. repository,

    The branch,Appvance and 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 that readscontains 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 code.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

        Test changes

        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:

          first.

          java

          Validation-jar checklist

          updateGetURL.jar
          1. Run<controller-domain-or-ip> build.xml

          Value for <controller-domain-or-ip> can be similar to any of the CI/CDfollowing:

          job

            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.

            Confirmfollowing 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 dashboardcontroller.json readsfile.

            from

            Push the new code location.

            Verify linkschanges to AIQthe executions,build.xml reports,file andin artifactsyour stillrepository. resolve correctly.Review logs

            Troubleshooting

            for

            In missingcase files,of permissionany errors,issues or stale cache references.

            Documentrunning the finaljava pathupdateGetURL.jar, andyou rollbackcan instructions.manually

            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