Skip to content

Commit

Permalink
Update default version for acceptance tests
Browse files Browse the repository at this point in the history
  • Loading branch information
welandaz committed Nov 19, 2024
1 parent cd4ecf7 commit debbb3a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions acceptance-tests/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ dependencies {
val jenkinsVersions = listOf(
JenkinsVersion.LATEST,
JenkinsVersion.LATEST_LTS,
JenkinsVersion.V2_401
JenkinsVersion.V2_440
)

jenkinsVersions
Expand Down Expand Up @@ -106,15 +106,15 @@ data class JenkinsVersion(val version: String, val downloadUrl: URL) {

private const val LATEST_VERSION = "latest"
private const val LATEST_LTS_VERSION = "latest-lts"
private const val V2_401_VERSION = "2.401.3"
private const val V2_440_VERSION = "2.440.3"

private const val MIRROR = "https://updates.jenkins.io"

private val JENKINS_VERSION_PATTERN = "^\\d+([.]\\d+)*?\$".toRegex()

val LATEST = of(LATEST_VERSION)
val LATEST_LTS = of(LATEST_LTS_VERSION)
val V2_401 = of(V2_401_VERSION)
val V2_440 = of(V2_440_VERSION)

private fun of(version: String): JenkinsVersion {
val downloadUrl =
Expand All @@ -136,7 +136,7 @@ data class JenkinsVersion(val version: String, val downloadUrl: URL) {
}

val isDefault: Boolean
get() = version == V2_401_VERSION
get() = version == V2_440_VERSION

val label: String
get() = if (isJenkinsVersion(version)) {
Expand Down

0 comments on commit debbb3a

Please sign in to comment.