hj
This commit is contained in:
parent
c67299cfeb
commit
0c7430265d
@ -25,29 +25,29 @@ pipeline {
|
|||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
try {
|
try {
|
||||||
git 'https://git.wmi.amu.edu.pl/s487187/ium_487187.git'
|
git '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') {
|
// stage('Create dvc.yaml') {
|
||||||
steps {
|
// steps {
|
||||||
writeFile file: 'dvc.yaml', text: '''
|
// writeFile file: 'dvc.yaml', text: '''
|
||||||
stages:
|
// stages:
|
||||||
prepare:
|
// prepare:
|
||||||
cmd: python prepare_data.py
|
// cmd: python prepare_data.py
|
||||||
deps:
|
// deps:
|
||||||
- raw_data.csv
|
// - raw_data.csv
|
||||||
outs:
|
// outs:
|
||||||
- processed_data.csv
|
// - processed_data.csv
|
||||||
'''
|
// '''
|
||||||
sh 'git add dvc.yaml'
|
// sh 'git add dvc.yaml'
|
||||||
sh 'git commit -m "Add dvc.yaml"'
|
// sh 'git commit -m "Add dvc.yaml"'
|
||||||
sh 'git push origin HEAD'
|
// sh 'git push origin HEAD'
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
|
|
||||||
stage('Pull DVC Files') {
|
stage('Pull DVC Files') {
|
||||||
steps {
|
steps {
|
||||||
|
Loading…
Reference in New Issue
Block a user