ium_464913/Jenkinsfile

40 lines
965 B
Plaintext
Raw Normal View History

2024-03-20 14:37:27 +01:00
pipeline {
2024-03-24 11:31:18 +01:00
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',
)
}
2024-03-24 12:13:05 +01:00
2024-03-24 11:31:18 +01:00
stages {
stage('Clone Repository') {
steps {
git branch: 'main', url: 'https://git.wmi.amu.edu.pl/s464913/ium_464913.git'
}
}
2024-03-24 12:13:05 +01:00
stage('Download Dataset') {
2024-03-24 11:31:18 +01:00
steps {
script {
withEnv (["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}", "KAGGLE_KEY=${params.KAGGLE_KEY}"]) {
sh 'chmod +x download_dataset.sh'
sh './download_dataset.sh'
2024-03-20 15:12:48 +01:00
}
}
2024-03-24 11:31:18 +01:00
}
}
2024-03-24 12:13:05 +01:00
stage('Archive Artifacts') {
2024-03-24 11:31:18 +01:00
steps {
archiveArtifacts artifacts: 'data/*', onlyIfSuccessful: true
}
2024-03-20 14:24:07 +01:00
}
2024-03-24 11:31:18 +01:00
}
2024-03-20 14:21:31 +01:00
}