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}" + } } } }