Skip to content

Commit

Permalink
Add opentelemetry plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-beck committed Dec 10, 2024
1 parent d57663e commit 79302b0
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
13 changes: 13 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,19 @@
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>io.jenkins.plugins</groupId>
<artifactId>opentelemetry</artifactId>
<version>3.1423.v0d1a_2fcd2429</version>
<scope>test</scope>
</dependency>
<dependency>
<!-- requireUpperBounds -->
<groupId>com.google.errorprone</groupId>
<artifactId>error_prone_annotations</artifactId>
<version>2.34.0</version>
<scope>test</scope>
</dependency>
</dependencies>

<licenses>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,18 @@
import org.junit.Rule;
import org.junit.Test;

import static org.hamcrest.CoreMatchers.notNullValue;
import static org.hamcrest.MatcherAssert.assertThat;

public class UpdateCenterTest {
@Rule
public JenkinsConfiguredWithCodeRule j = new JenkinsConfiguredWithCodeRule();

@Before
public void prepare() throws Exception {
j.jenkins.getUpdateCenter().updateAllSites();

assertThat(j.jenkins.getPlugin("opentelemetry"), notNullValue());
}

@ConfiguredWithCode("configuration-as-code.yml")
Expand Down

0 comments on commit 79302b0

Please sign in to comment.