49 lines
1.0 KiB
Plaintext
49 lines
1.0 KiB
Plaintext
pipeline {
|
|
agent any
|
|
|
|
tools {
|
|
git 'Default'
|
|
}
|
|
|
|
stages {
|
|
stage('Setup Git') {
|
|
steps {
|
|
sh """
|
|
git config user.email "jakzar3@st.amu.edu.pl"
|
|
git config user.name "s487187"
|
|
"""
|
|
}
|
|
}
|
|
|
|
stage('Install DVC') {
|
|
steps {
|
|
sh 'pip install dvc'
|
|
}
|
|
}
|
|
|
|
stage('Clone Repository') {
|
|
steps {
|
|
script {
|
|
try {
|
|
git url: 'https://git.wmi.amu.edu.pl/s487187/ium_487187'
|
|
} catch (Exception err) {
|
|
error "Failed to clone repository: ${err.message}"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
stage('Pull DVC Files') {
|
|
steps {
|
|
sh 'dvc pull'
|
|
}
|
|
}
|
|
|
|
stage('Run DVC Pipeline') {
|
|
steps {
|
|
sh 'dvc reproduce'
|
|
}
|
|
}
|
|
}
|
|
}
|