2024-03-20 12:47:00 +01:00
|
|
|
pipeline {
|
2024-03-20 12:51:18 +01:00
|
|
|
agent any
|
2024-03-20 12:58:03 +01:00
|
|
|
|
2024-03-20 12:51:18 +01:00
|
|
|
stages {
|
2024-03-20 12:58:03 +01:00
|
|
|
stage('Checkout') {
|
2024-03-20 12:51:18 +01:00
|
|
|
steps {
|
2024-03-20 12:58:03 +01:00
|
|
|
// Clone the public repository
|
|
|
|
git url: 'https://git.wmi.amu.edu.pl/s495715/iumKC.git'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
stage('Run Python Script') {
|
|
|
|
steps {
|
|
|
|
// Execute the main.py script
|
|
|
|
sh 'python3 main.py'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
stage('Archive Artifacts') {
|
|
|
|
steps {
|
|
|
|
// Archive any artifacts generated by the script
|
|
|
|
// Adjust the path according to your script's output
|
|
|
|
archiveArtifacts artifacts: './football_dataset/*', fingerprint: true
|
2024-03-20 12:51:18 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2024-03-20 12:58:03 +01:00
|
|
|
}
|