Skip to content

Commit

Permalink
Merge pull request #1382 from basil/refresh
Browse files Browse the repository at this point in the history
Support building on Java 17 and 21
  • Loading branch information
jamietanna committed Sep 2, 2023
2 parents c8a3dc0 + 5464235 commit fb51265
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .mvn/extensions.xml
Expand Up @@ -2,6 +2,6 @@
<extension>
<groupId>io.jenkins.tools.incrementals</groupId>
<artifactId>git-changelist-maven-extension</artifactId>
<version>1.6</version>
<version>1.7</version>
</extension>
</extensions>
2 changes: 1 addition & 1 deletion Jenkinsfile
@@ -1,4 +1,4 @@
buildPlugin(useContainerAgent: true, configurations: [
[platform: 'linux', jdk: 11],
[platform: 'linux', jdk: 17],
[platform: 'windows', jdk: 11],
])
Expand Up @@ -164,7 +164,7 @@ class MemoryJobManagementSpec extends Specification {

def 'outputStream'() {
setup:
PrintStream out = Mock(PrintStream)
PrintStream out = new PrintStream(OutputStream.nullOutputStream())

when:
JobManagement jobManagement = new MemoryJobManagement(out)
Expand Down
Expand Up @@ -319,9 +319,8 @@ class ScriptRequestGeneratorSpec extends Specification {
requests[0].body == SCRIPT_A
requests[0].urlRoots.length == 3
requests[0].urlRoots[0].toString() == 'workspace:/'
URL tempDirUrl = new File(System.getProperty('java.io.tmpdir')).toURI().toURL()
requests[0].urlRoots[1] =~ "${tempDirUrl}jobdsl.*\\.jar"
requests[0].urlRoots[2] =~ "${tempDirUrl}jobdsl.*\\.jar"
requests[0].urlRoots[1] =~ 'jobdsl.*\\.jar'
requests[0].urlRoots[2] =~ 'jobdsl.*\\.jar'
!requests[0].ignoreExisting
requests[0].scriptPath == getAbsolutePath(remoteBuild.workspace.child('a.groovy'))
requests[0].relativeScriptPath == 'a.groovy'
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>plugin</artifactId>
<version>4.66</version>
<version>4.72</version>
<relativePath />
</parent>
<artifactId>job-dsl-parent</artifactId>
Expand Down

0 comments on commit fb51265

Please sign in to comment.