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