Jenkins
This commit is contained in:
parent
d80c6d6c99
commit
2411a783eb
10
Jenkinsfile
vendored
10
Jenkinsfile
vendored
@ -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 {
|
||||||
// Download dataset from kaggle
|
script {
|
||||||
sh 'pip install kaggle'
|
withEnv (["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}", "KAGGLE_KEY=${params.KAGGLE_KEY}"]) {
|
||||||
sh 'kaggle datasets download -d mlg-ulb/creditcardfraud'
|
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