ium_464915/Jenkinsfile

45 lines
1.2 KiB
Plaintext
Raw Normal View History

2024-03-26 17:54:56 +01:00
pipeline {
2024-03-26 17:59:55 +01:00
agent any
2024-03-26 21:15:11 +01:00
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'
)
}
2024-03-26 17:59:55 +01:00
stages {
2024-03-26 21:15:11 +01:00
stage('Download Dataset') {
steps {
script {
2024-03-26 21:28:20 +01:00
withEnv(["CUTOFF=${params.CUTOFF}"]) {
2024-03-26 21:15:11 +01:00
sh "bash ./download.sh"
}
}
}
post {
success {
2024-03-26 21:40:11 +01:00
archiveArtifacts artifacts: 'data/**', onlyIfSuccessful: true
2024-03-26 21:15:11 +01:00
}
}
}
stage('Checkout') {
2024-03-26 17:59:55 +01:00
steps {
2024-03-26 21:15:11 +01:00
git branch: 'main', url: 'https://git.wmi.amu.edu.pl/s464915/ium_464915.git'
2024-03-26 17:59:55 +01:00
}
}
}
2024-03-26 17:54:56 +01:00
}