Skip to content

Conversation

Copy link

Copilot AI commented Jan 13, 2026

Thanks for assigning this issue to me. I'm starting to work on it and will keep this PR's description up to date as I form a plan and make progress.

Original prompt

This section details on the original issue you should resolve

<issue_title>Dynatrace Badge</issue_title>
<issue_description>Branch Requirement: Create the branch for this work using the prefix: ORDER-15065_/
PullRequest Requirement: Ensure the title of the PR = 'Dynatrace Badge'

Please perform the following modernization tasks:

1. Jenkins Optimization: 'Detect Changes' Stage

Locate the Jenkinsfile. If a Jenkinsfile is found but it does NOT yet contain a stage named 'Detect Changes', insert the following code as the very first stage inside the stages block:
If a Jenkinsfile is not found no changes are needed for this specific step.

stage('Detect Changes') {
when {
anyOf {
changeset "src/"
changeset "
/Jenkinsfile"
expression {
return currentBuild.changeSets.isEmpty()
}
}
}
steps {
echo "Changes detected or initial build. Proceeding..."
}
}

2. Jenkins Refactor: JUnit Reporting

Locate the Jenkinsfile. If a Jenkinsfile is not found no changes are needed for this specific step.
If the name of the repository contains ScenarioRunner, no changes are needed for this specific step.

  1. Jenkins Integration:
    • Locate the 'Jenkinsfile' anywhere in the repository.
    • Find the 'dotnet test' command.
    • Append the parameter: --logger 'junit;LogFilePath=test-results.xml'
  2. JUnit Visualization:
    • In the 'post' section of the Jenkinsfile (within the 'always' block), add the following step:
      junit '**/test-results.xml'
  3. Logger Dependency:
    • For every test project, check if 'JunitXml.TestLogger' is present.
    • If missing, add it using: dotnet add [project_path] package JunitXml.TestLogger

Search the Jenkinsfile for the junit step, typically found within the post { always { ... } } block.

Action:

  • Find: junit '**/test-results.xml'
  • Replace with: junit allowEmptyResults: true, testResults: '**/test-results.xml'

Note: If the junit step is already in the new format or does not exist, no changes are needed for this specific step.
Note: If there is no jenkins file, no changes are needed for this specific step.

3. Observability: Remove Kibana link

  1. Table Update/Creation:

Locate the environment table. If it does not exist, create one underneath the badges.

Headers: Rename headers to | Test | Acc | Prod |.
Row 1 (Swagger): Keep the existing Swagger icons: | [![][SwaggerImg]][ApiT] | [![][SwaggerImg]][ApiA] | [![][SwaggerImg]][ApiP] |
Row 2 (Dynatrace): Insert a new row underneath the Swagger row for Dynatrace: | [![][DynatraceImg]][DtT] | [![][DynatraceImg]][DtA] | [![][DynatraceImg]][DtP] |

skip row 1 if it did not exist before.

  1. Image & Link Definitions: Add the following definitions to the bottom of the file (ensure they don't already exist):
    Image: [DynatraceImg]: https://github.com/albumprinter/PL-Blobs/blob/master/Tools/Dynatrace.png
    Test Link: [Dynatrace_Test]: https://dqs14963.apps.dynatrace.com/ui/apps/dynatrace.services/explorer?filtering=dt.entity.service.name+%3D+*Test-Testing-QualityEngineer-Assignment-DotNet
    Acceptance Link: [Dynatrace_Acc]: https://dqs14963.apps.dynatrace.com/ui/apps/dynatrace.services/explorer?filtering=dt.entity.service.name+%3D+*Acc-Testing-QualityEngineer-Assignment-DotNet
    Production Link: [Dynatrace_Prod]: https://dqs14963.apps.dynatrace.com/ui/apps/dynatrace.services/explorer?filtering=dt.entity.service.name+%3D+*Prod-Testing-QualityEngineer-Assignment-DotNet

Please add a tooltip for the Swagger (if present) and Dynatrace images. Tooltips in Markdown require a title attribute in the image reference definition.

4. Observability: Remove Kibana link

Update the 'README.md' file.Remove the Kibana badge.
Note: If the Kibana badge is already removed from the readme, no changes are needed for this specific step.

4. Delivery

  • Ensure the Jenkins pipeline remains valid.
  • Create a Pull Request with title = 'Dynatrace Badge' containing all changes.
  • Ensure the title of the PR = 'Dynatrace Badge'
  • Ensure there is a commit with nodeploy in the message
    </issue_description>

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Dynatrace Badge

2 participants