Jenkins
This commit is contained in:
parent
d80c6d6c99
commit
2411a783eb
12
Jenkinsfile
vendored
12
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 {
|
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
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