ium_444465/Jenkinsfile

41 lines
1.4 KiB
Plaintext
Raw Normal View History

2022-03-27 16:57:09 +02:00
pipeline {
2022-04-03 19:17:24 +02:00
agent {
dockerfile true
2022-04-03 19:17:24 +02:00
}
2022-03-27 16:57:09 +02:00
parameters {
string (
defaultValue: 'andrzejpreibisz',
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'
)
string(
defaultValue: "10000",
description: 'Use CUTOFF random examples from dataset',
name: 'CUTOFF'
)
2022-03-21 11:05:30 +01:00
}
2022-03-27 16:57:09 +02:00
stages {
stage("Git clone") {
steps {
checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[credentialsId: 's444465', url: 'https://git.wmi.amu.edu.pl/s444465/ium_444465']]])
}
}
2022-04-03 21:00:39 +02:00
stage("Download data") {
steps {
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
"KAGGLE_KEY=${params.KAGGLE_KEY}",
"CUTOFF=${params.CUTOFF}"]) {
sh "chmod 777 dataset_script.sh"
sh "./dataset_script.sh $CUTOFF"
2022-04-03 21:00:39 +02:00
archiveArtifacts artifacts: "heart_2020_test.csv, heart_2020_train.csv, heart_2020_sorted.csv", onlyIfSuccessful: true
}
}
}
2022-03-21 11:05:30 +01:00
}
2022-04-03 21:00:39 +02:00
}