Jenkins
This commit is contained in:
parent
0b1a0423b2
commit
d80c6d6c99
23
Jenkinsfile
vendored
23
Jenkinsfile
vendored
@ -1,6 +1,18 @@
|
|||||||
pipeline {
|
pipeline {
|
||||||
agent any
|
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 {
|
stages {
|
||||||
stage('Clone Repository') {
|
stage('Clone Repository') {
|
||||||
steps {
|
steps {
|
||||||
@ -8,5 +20,14 @@ pipeline {
|
|||||||
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') {
|
||||||
|
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'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user