ium_464914/Jenkinsfile

28 lines
718 B
Plaintext
Raw Normal View History

2024-03-20 14:34:00 +01:00
pipeline {
agent any
2024-03-26 18:56:58 +01:00
parameters {
string(name: 'KAGGLE_USERNAME', defaultValue: '', description: 'Kaggle username')
password(name: 'KAGGLE_KEY', defaultValue:'', description: 'Kaggle Key')
}
2024-03-20 14:34:00 +01:00
stages {
2024-03-26 18:56:58 +01:00
stage('Git Checkout') {
steps {
git "https://git.wmi.amu.edu.pl/s464914/ium_464914.git"
}
}
stage('Cleanup') {
2024-03-20 14:34:00 +01:00
steps {
2024-03-26 18:56:58 +01:00
sh 'rm -rf artifacts'
2024-03-20 14:34:00 +01:00
}
}
2024-03-26 18:56:58 +01:00
stage('Build') {
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
"KAGGLE_KEY=${params.KAGGLE_KEY}" ]) {
sh 'bash ./get_dataset.sh'
}
}
2024-03-26 19:09:35 +01:00
}
2024-03-26 18:56:58 +01:00
2024-03-20 14:34:00 +01:00
}