Jenkins
This commit is contained in:
parent
d80c6d6c99
commit
2411a783eb
12
Jenkinsfile
vendored
12
Jenkinsfile
vendored
@ -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
7
download_dataset.sh
Normal file
@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
pip install kaggle
|
||||
|
||||
kaggle datasets download -d mlg-ulb/creditcardfraud
|
||||
|
||||
unzip -o creditcardfraud.zip
|
Loading…
Reference in New Issue
Block a user