52 lines
1.3 KiB
Groovy
52 lines
1.3 KiB
Groovy
pipeline {
|
|
agent any
|
|
|
|
parameters {
|
|
string(
|
|
defaultValue: 'filipnowicki',
|
|
description: 'Kaggle username',
|
|
name: 'KAGGLE_USERNAME',
|
|
trim: false
|
|
)
|
|
string(
|
|
defaultValue: '100',
|
|
description: 'Dataset cutoff parametr',
|
|
name: 'CUTOFF',
|
|
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('Download Dataset') {
|
|
agent {
|
|
dockerfile {
|
|
filename 'Dockerfile'
|
|
reuseNode true
|
|
}
|
|
}
|
|
|
|
steps {
|
|
script {
|
|
withEnv(["CUTOFF=${params.CUTOFF}"]) {
|
|
sh "bash ./download.sh"
|
|
}
|
|
}
|
|
}
|
|
post {
|
|
success {
|
|
archiveArtifacts artifacts: 'data/**', onlyIfSuccessful: true
|
|
}
|
|
}
|
|
}
|
|
stage('Checkout') {
|
|
steps {
|
|
git branch: 'main', url: 'https://git.wmi.amu.edu.pl/s464915/ium_464915.git'
|
|
}
|
|
}
|
|
}
|
|
} |