From 7df7ca24fb04af1b149e72cc4ec9f00e3bd4da25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Zar=C4=99ba?= Date: Tue, 23 May 2023 23:17:16 +0200 Subject: [PATCH] s --- JenkinsfileDVC | 26 +++++++++----------------- 1 file changed, 9 insertions(+), 17 deletions(-) diff --git a/JenkinsfileDVC b/JenkinsfileDVC index 8625446..8caf8de 100644 --- a/JenkinsfileDVC +++ b/JenkinsfileDVC @@ -15,6 +15,14 @@ pipeline { } } + stage('Setup Python') { + steps { + sh """ + curl -sSL https://install.python-poetry.org | python3 - + """ + } + } + stage('Install DVC') { steps { sh 'pip install dvc' @@ -25,29 +33,13 @@ pipeline { steps { script { try { - git 'https://git.wmi.amu.edu.pl/s487187/ium_487187' + git url: 'https://git.wmi.amu.edu.pl/s487187/ium_487187' } catch (Exception err) { error "Failed to clone repository: ${err.message}" } } } } - // stage('Create dvc.yaml') { - // steps { - // writeFile file: 'dvc.yaml', text: ''' - // stages: - // prepare: - // cmd: python prepare_data.py - // deps: - // - raw_data.csv - // outs: - // - processed_data.csv - // ''' - // sh 'git add dvc.yaml' - // sh 'git commit -m "Add dvc.yaml"' - // sh 'git push origin HEAD' - // } - // } stage('Pull DVC Files') { steps {