Skip to content

Commit

Permalink
Trying to fulfill SQs almost impossible condition coverage requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
schnatterer committed Jun 26, 2020
1 parent 85f4c02 commit 93e80e7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/com/cloudogu/ces/cesbuildlib/Docker.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -388,10 +388,8 @@ class Docker implements Serializable {
String url = "https://download.docker.com/linux/static/stable/x86_64/docker-${dockerClientVersionToInstall}.tgz"

// Keep compatibility with old URLs
if ((dockerClientVersionToInstall.startsWith('17') ||
dockerClientVersionToInstall.startsWith('18.03') ||
dockerClientVersionToInstall.startsWith('18.06')) &&
!dockerClientVersionToInstall.endsWith('-ce')) {
if (dockerClientVersionToInstall.matches('^(17|18.03|18.06).*') &&
!dockerClientVersionToInstall.endsWith('-ce')) {
url = url.replace('.tgz', '-ce.tgz')
}

Expand Down

0 comments on commit 93e80e7

Please sign in to comment.