Skip to content

Commit

Permalink
JenkinsConfiguredWithCodeRule
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-beck committed Dec 10, 2024
1 parent 6bd84d5 commit b6ebea7
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 5 deletions.
38 changes: 35 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>plugin</artifactId>
<version>5.3</version>
<version>4.88</version>
<relativePath/>
</parent>

Expand All @@ -14,9 +14,10 @@
<packaging>hpi</packaging>
<properties>
<changelist>999999-SNAPSHOT</changelist>
<jenkins.baseline>2.479</jenkins.baseline>
<jenkins.version>${jenkins.baseline}.1</jenkins.version>
<jenkins.baseline>2.462</jenkins.baseline>
<jenkins.version>${jenkins.baseline}.3</jenkins.version>
<gitHubRepo>jenkinsci/${project.artifactId}-plugin</gitHubRepo>
<configuration-as-code.version>1873.vea_5814ca_9c93</configuration-as-code.version>
</properties>
<name>Jenkins infrastructure test</name>
<url>https://github.com/jenkinsci/${project.artifactId}-plugin</url>
Expand All @@ -33,6 +34,37 @@
</dependencies>
</dependencyManagement>

<dependencies>
<dependency>
<groupId>io.jenkins</groupId>
<artifactId>configuration-as-code</artifactId>
<version>${configuration-as-code.version}</version>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>org.json</groupId>
<artifactId>json</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>io.jenkins.configuration-as-code</groupId>
<artifactId>test-harness</artifactId>
<version>${configuration-as-code.version}</version>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>org.json</groupId>
<artifactId>json</artifactId>
</exclusion>
<exclusion>
<groupId>org.jenkins-ci.main</groupId>
<artifactId>jenkins-test-harness</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>

<licenses>
<license>
<name>MIT License</name>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package io.jenkins.plugins.jenkinsinfratest;

import io.jenkins.plugins.casc.misc.JenkinsConfiguredWithCodeRule;
import org.junit.Rule;
import org.junit.Test;
import org.jvnet.hudson.test.JenkinsRule;

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

@Test
public void test() throws Exception {
Expand Down

0 comments on commit b6ebea7

Please sign in to comment.