From 3ebfde139f510148cda3afa865963aab7aab7210 Mon Sep 17 00:00:00 2001 From: Alexandre Bique Date: Tue, 17 Sep 2024 10:39:59 +0200 Subject: [PATCH] Fix syntax --- jenkins/linux-plugins.groovy | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/jenkins/linux-plugins.groovy b/jenkins/linux-plugins.groovy index 8243472..5514d21 100644 --- a/jenkins/linux-plugins.groovy +++ b/jenkins/linux-plugins.groovy @@ -33,11 +33,13 @@ pipeline { timeout(time: 4, unit: 'HOURS') } steps { - if (CLEAN_BUILD) { - sh 'rm -rf builds' - } - if (REBUILD_VCPKG) { - sh 'rm -rf vcpkg/{installed,buildtree} ~/.cache/vcpkg' + script { + if (CLEAN_BUILD) { + sh 'rm -rf builds' + } + if (REBUILD_VCPKG) { + sh 'rm -rf vcpkg/{installed,buildtree} ~/.cache/vcpkg' + } } sh 'scripts/build-gui.sh' }