From 3b1e5bae983f9860c84487ef20d04abf1963afa9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20de=20la=20Pe=C3=B1a?= Date: Thu, 8 Oct 2020 17:36:27 +0200 Subject: [PATCH 1/2] fix: remove extra curly brace --- .ci/packaging.groovy | 1 - 1 file changed, 1 deletion(-) diff --git a/.ci/packaging.groovy b/.ci/packaging.groovy index 81ff5b1994a9..7451975fa05b 100644 --- a/.ci/packaging.groovy +++ b/.ci/packaging.groovy @@ -221,7 +221,6 @@ def tagAndPush(name){ } else if ( status > 0 ) { log(level: 'WARN', text: "${name} doesn't have ${variant} docker images. See https://github.com/elastic/beats/pull/21621") } - } } } From 48bd2b84dd2447688af2c9e0200bc549b609e87d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20de=20la=20Pe=C3=B1a?= Date: Thu, 8 Oct 2020 17:36:57 +0200 Subject: [PATCH 2/2] chore: proper indent --- .ci/packaging.groovy | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.ci/packaging.groovy b/.ci/packaging.groovy index 7451975fa05b..c65fd7f8b56e 100644 --- a/.ci/packaging.groovy +++ b/.ci/packaging.groovy @@ -215,12 +215,13 @@ def tagAndPush(name){ docker push ${newName} docker tag ${oldName} ${commitName} docker push ${commitName} - """, returnStatus: true) - if ( status > 0 && iterations < 3) { - error('tag and push failed, retry') - } else if ( status > 0 ) { - log(level: 'WARN', text: "${name} doesn't have ${variant} docker images. See https://github.com/elastic/beats/pull/21621") - } + """, returnStatus: true) + + if ( status > 0 && iterations < 3) { + error('tag and push failed, retry') + } else if ( status > 0 ) { + log(level: 'WARN', text: "${name} doesn't have ${variant} docker images. See https://github.com/elastic/beats/pull/21621") + } } }