ium_464913/Jenkinsfile
2024-03-20 15:12:48 +01:00

33 lines
1017 B
Groovy

pipeline {
agent any
parameters {
string (
defaultValue: 'vskyper',
description: 'Kaggle username',
name: 'KAGGLE_USERNAME',
trim: false
)
password (
defaultValue: '',
description: 'Kaggle token taken from kaggle.json file, as described in https://github.com/Kaggle/kaggle-api#api-credentials',
name: 'KAGGLE_KEY',
)
}
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'
}
}
}
}
}