Skip to content

Commit e22197b

Browse files
authored
Merge pull request DataDog#10856 from DataDog/fermayo/ciapp-fix-jenkins-docs
[ci-app] Add instructions to enable CI Visibility in Jenkins
2 parents 269dfca + 920c4d5 commit e22197b

File tree

1 file changed

+27
-0
lines changed
  • content/en/continuous_integration/setup_pipelines

1 file changed

+27
-0
lines changed

content/en/continuous_integration/setup_pipelines/jenkins.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,33 @@ INFO datadog.trace.core.StatusLogger#logStatus: DATADOG TRACER CONFIGURATION
3535
**Note**: Enabling the collection of traces using the Jenkins plugin is incompatible with running the Java APM tracer as a Java agent when launching Jenkins.
3636

3737

38+
## Enabling CI Visibility on the plugin
39+
40+
While in beta, the UI to activate CI Visibility is hidden and needs to be manually configured following these steps:
41+
42+
1. Open the file: `$JENKINS_HOME\org.datadog.jenkins.plugins.datadog.DatadogGlobalConfiguration.xml`
43+
44+
2. Add or modify the following lines:
45+
46+
{{< code-block lang="xml" >}}
47+
<reportWith>DSD</reportWith>
48+
<targetHost>localhost</targetHost>
49+
<targetPort>8125</targetPort>
50+
<targetTraceCollectionPort>8126</targetTraceCollectionPort>
51+
<traceServiceName>jenkins</traceServiceName>
52+
<collectBuildTraces>true</collectBuildTraces>
53+
{{< /code-block >}}
54+
55+
3. Restart Jenkins for the changes to take effect.
56+
57+
If the configuration is correct, your Jenkins log should contain the following lines after restarting:
58+
59+
{{< code-block lang="text" >}}
60+
INFO datadog.trace.core.CoreTracer#<init>: New instance: DDTracer-62fcf62{ ... }
61+
INFO datadog.trace.core.StatusLogger#logStatus: DATADOG TRACER CONFIGURATION { ... }
62+
{{< /code-block >}}
63+
64+
3865
## Enable job log collection on the Agent
3966

4067
Enable log collection in the Agent:

0 commit comments

Comments
 (0)