2024-03-23 20:49:49 +01:00
|
|
|
pipeline {
|
|
|
|
agent any
|
|
|
|
|
|
|
|
parameters {
|
2024-03-25 20:03:27 +01:00
|
|
|
string(name: 'KAGGLE_USERNAME', defaultValue: 'gulczas', description: 'Kaggle username')
|
2024-03-25 21:06:06 +01:00
|
|
|
password(name: 'KAGGLE_KEY', defaultValue: '', description: 'Kaggle API key')
|
2024-03-23 20:49:49 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
stages {
|
|
|
|
stage('Clone Repository') {
|
|
|
|
steps {
|
|
|
|
git 'https://git.wmi.amu.edu.pl/s464953/ium_464953.git'
|
|
|
|
}
|
|
|
|
}
|
2024-03-25 21:17:08 +01:00
|
|
|
stage('Cleanup Artifacts') {
|
|
|
|
steps {
|
|
|
|
script {
|
|
|
|
sh 'rm -rf artifacts'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2024-03-23 20:49:49 +01:00
|
|
|
stage('Run Script') {
|
|
|
|
steps {
|
|
|
|
script {
|
2024-03-24 20:40:41 +01:00
|
|
|
withEnv([
|
|
|
|
"KAGGLE_USERNAME=${env.KAGGLE_USERNAME}",
|
|
|
|
"KAGGLE_KEY=${env.KAGGLE_KEY}"])
|
|
|
|
{
|
2024-05-08 21:04:42 +02:00
|
|
|
sh "bash ./download_dataset.sh"
|
2024-03-23 20:49:49 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Archive Artifacts') {
|
|
|
|
steps {
|
|
|
|
archiveArtifacts artifacts: 'artifacts/*', onlyIfSuccessful: true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|