Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Jenkins job is getting used in the Automatics to execute the test case in debug mode. Partner can refer Smart Debugger Jenkins Setup for detailed steps on how to setup jenkins job for smart debugger.

Smart-Debugger Service Setup

Software Requirement

  • JDK 17

  • Maven 3

JDK 17 Setup Details

Follow Steps below to install Java 17 on CentOS/linux.

    • Update before installing any new program

      yum -y update
    • Install Java 17

      yum install java-17-openjdk
    • Verify Java is Installed

      java –version

Building debugger Service Source Code

  1. Clone Debugger Service source code from Debugger Service
  2.  Open debuggerservice/src/main/resources/application.properties in source code and update automaticsBaseUrl with automatics base url and save the changes.
  3. Build the source code using maven to generate the jar file

"mvn clean install

Deployment

  1. Copy the jar file to the VM where Debugger Service to be deployed.
  2. Create 2 directories debugger-service and logs in VM.
  3. Copy the jar file to cdrouter-service directory.
  4. Run the below command from debugger-service directory to bring the Debugger Service up in the VM.

    nohup java -XX:+UseSerialGC -Dlog4j2.formatMsgNoLookups=true -jar debuggerservice-0.0.1-SNAPSHOT.jar > logfile.log 2>&1 &
  5. debuggerservice.log file will be created in the logs directory and we can check the real time logs of the Debugger Service using this file.