Skip to content

Commit

Permalink
Add configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-beck committed Dec 10, 2024
1 parent fc13ed1 commit 168a8cd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package io.jenkins.plugins.jenkinsinfratest;

import io.jenkins.plugins.casc.misc.ConfiguredWithCode;
import io.jenkins.plugins.casc.misc.JenkinsConfiguredWithCodeRule;
import org.junit.Rule;
import org.junit.Test;
Expand All @@ -8,6 +9,7 @@ public class UpdateCenterTest {
@Rule
public JenkinsConfiguredWithCodeRule j = new JenkinsConfiguredWithCodeRule();

@ConfiguredWithCode("configuration-as-code.yml")
@Test
public void test() throws Exception {
j.jenkins.getUpdateCenter().updateAllSites();
Expand Down
2 changes: 2 additions & 0 deletions src/test/resources/configuration-as-code.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
jenkins:
systemMessage: "Jenkins configured automatically by Jenkins Configuration as Code plugin"

0 comments on commit 168a8cd

Please sign in to comment.