This commit is contained in:
Jakub Zaręba 2023-05-23 23:17:16 +02:00
parent bb71cae6ff
commit 7df7ca24fb

View File

@ -15,6 +15,14 @@ pipeline {
} }
} }
stage('Setup Python') {
steps {
sh """
curl -sSL https://install.python-poetry.org | python3 -
"""
}
}
stage('Install DVC') { stage('Install DVC') {
steps { steps {
sh 'pip install dvc' sh 'pip install dvc'
@ -25,29 +33,13 @@ pipeline {
steps { steps {
script { script {
try { 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) { } catch (Exception err) {
error "Failed to clone repository: ${err.message}" 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') { stage('Pull DVC Files') {
steps { steps {