From 551ca5ca6f024d530d82f78f07efb50494ebd601 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Zar=C4=99ba?= Date: Tue, 23 May 2023 23:07:58 +0200 Subject: [PATCH] s --- JenkinsfileDVC | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/JenkinsfileDVC b/JenkinsfileDVC index 8be2d0e..8b197c9 100644 --- a/JenkinsfileDVC +++ b/JenkinsfileDVC @@ -14,10 +14,12 @@ pipeline { stage('Clone Repository') { steps { - try { - git 'https://git.wmi.amu.edu.pl/s487187/ium_487187.git' - } catch (err) { - error "Failed to clone repository: ${err.message}" + script { + try { + git 'https://git.wmi.amu.edu.pl/s487187/ium_487187.git' + } catch (Exception err) { + error "Failed to clone repository: ${err.message}" + } } } }