Skip to content

Commit c5cbd91

Browse files
Bump org.jenkins-ci.plugins:plugin from 5.27 to 5.28 (#192)
* Bump org.jenkins-ci.plugins:plugin from 5.27 to 5.28 Bumps [org.jenkins-ci.plugins:plugin](https://github.com/jenkinsci/plugin-pom) from 5.27 to 5.28. - [Release notes](https://github.com/jenkinsci/plugin-pom/releases) - [Changelog](https://github.com/jenkinsci/plugin-pom/blob/master/CHANGELOG.md) - [Commits](jenkinsci/plugin-pom@plugin-5.27...plugin-5.28) --- updated-dependencies: - dependency-name: org.jenkins-ci.plugins:plugin dependency-version: '5.28' dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Format with spotless --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Mark Waite <mark.earl.waite@gmail.com>
1 parent 8005587 commit c5cbd91

File tree

2 files changed

+9
-17
lines changed

2 files changed

+9
-17
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>org.jenkins-ci.plugins</groupId>
77
<artifactId>plugin</artifactId>
8-
<version>5.27</version>
8+
<version>5.28</version>
99
<relativePath />
1010
</parent>
1111

src/test/java/hudson/plugins/plot/PlotBuilderTest.java

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,19 @@ class PlotBuilderTest {
1212
@Test
1313
void testWithMinimalPipelineArgs(JenkinsRule r) throws Exception {
1414
WorkflowJob p = r.createProject(WorkflowJob.class, "projectUnderTest");
15-
p.setDefinition(new CpsFlowDefinition(
16-
"""
15+
p.setDefinition(new CpsFlowDefinition("""
1716
node { \s
1817
plot csvFileName: 'plot-minimal.csv',
1918
group: 'My Data',
2019
style: 'line'
21-
}""",
22-
true));
20+
}""", true));
2321
r.buildAndAssertSuccess(p);
2422
}
2523

2624
@Test
2725
void testWithXML(JenkinsRule r) throws Exception {
2826
WorkflowJob p = r.createProject(WorkflowJob.class, "projectUnderTest");
29-
p.setDefinition(new CpsFlowDefinition(
30-
"""
27+
p.setDefinition(new CpsFlowDefinition("""
3128
node { \s
3229
def content = '<my_data>'
3330
content += '<test value1="123.456"/>'
@@ -44,16 +41,14 @@ void testWithXML(JenkinsRule r) throws Exception {
4441
nodeType: 'NODESET',
4542
xpath: 'my_data/test/@*']
4643
]
47-
}""",
48-
true));
44+
}""", true));
4945
r.buildAndAssertSuccess(p);
5046
}
5147

5248
@Test
5349
void testWithCSV(JenkinsRule r) throws Exception {
5450
WorkflowJob p = r.createProject(WorkflowJob.class, "projectUnderTest");
55-
p.setDefinition(new CpsFlowDefinition(
56-
"""
51+
p.setDefinition(new CpsFlowDefinition("""
5752
node { \s
5853
def content = 'Avg,Median,90,min,max,samples,errors,error %'
5954
content += '515.33,196,1117,2,16550,97560,360,0.37'
@@ -64,16 +59,14 @@ void testWithCSV(JenkinsRule r) throws Exception {
6459
style: 'line',
6560
yaxis: 'arbitrary',
6661
csvSeries: [[file: 'data.csv']]
67-
}""",
68-
true));
62+
}""", true));
6963
r.buildAndAssertSuccess(p);
7064
}
7165

7266
@Test
7367
void testWithProperties(JenkinsRule r) throws Exception {
7468
WorkflowJob p = r.createProject(WorkflowJob.class, "projectUnderTest");
75-
p.setDefinition(new CpsFlowDefinition(
76-
"""
69+
p.setDefinition(new CpsFlowDefinition("""
7770
node { \s
7871
def content = 'YVALUE=1'
7972
writeFile file: 'data.properties', text: content
@@ -86,8 +79,7 @@ void testWithProperties(JenkinsRule r) throws Exception {
8679
[file: 'data.properties',
8780
label: 'My Label']
8881
]
89-
}""",
90-
true));
82+
}""", true));
9183
r.buildAndAssertSuccess(p);
9284
}
9385
}

0 commit comments

Comments
 (0)