This commit is contained in:
Mateusz Piwowarski 2024-03-24 10:41:05 +01:00
parent d80c6d6c99
commit 2411a783eb
2 changed files with 13 additions and 6 deletions

12
Jenkinsfile vendored
View File

@ -16,16 +16,16 @@ pipeline {
stages { stages {
stage('Clone Repository') { stage('Clone Repository') {
steps { steps {
// Clone the Git repository
git branch: 'main', url: 'https://git.wmi.amu.edu.pl/s464913/ium_464913' git branch: 'main', url: 'https://git.wmi.amu.edu.pl/s464913/ium_464913'
} }
} }
stage('Download dataset') { stage('Download dataset') {
withEnv(['KAGGLE_USERNAME=${params.KAGGLE_USERNAME}', 'KAGGLE_KEY=${params.KAGGLE_KEY}']) { steps {
steps { script {
// Download dataset from kaggle withEnv (["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}", "KAGGLE_KEY=${params.KAGGLE_KEY}"]) {
sh 'pip install kaggle' sh 'chmod +x download_dataset.sh'
sh 'kaggle datasets download -d mlg-ulb/creditcardfraud' sh './download_dataset.sh'
}
} }
} }
} }

7
download_dataset.sh Normal file
View File

@ -0,0 +1,7 @@
#!/bin/bash
pip install kaggle
kaggle datasets download -d mlg-ulb/creditcardfraud
unzip -o creditcardfraud.zip