2023-04-13 22:26:46 +02:00
|
|
|
pipeline {
|
|
|
|
agent any
|
|
|
|
parameters {
|
|
|
|
string(
|
|
|
|
defaultValue: 'wojciechbatruszewicz',
|
|
|
|
description: 'Kaggle username',
|
|
|
|
name: 'KAGGLE_USERNAME',
|
|
|
|
trim: false
|
2023-04-13 22:26:46 +02:00
|
|
|
)
|
2023-04-13 22:26:46 +02:00
|
|
|
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('Run sh file') {
|
|
|
|
steps {
|
2023-04-13 22:26:46 +02:00
|
|
|
checkout scm
|
2023-04-13 22:26:46 +02:00
|
|
|
sh 'ls -l'
|
2023-04-13 23:10:05 +02:00
|
|
|
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
|
|
|
|
"KAGGLE_KEY=${params.KAGGLE_KEY}" ]) {
|
|
|
|
sh 'chmod +x ./datasetScript.sh'
|
|
|
|
sh './datasetScript.sh'
|
|
|
|
}
|
2023-04-13 22:26:46 +02:00
|
|
|
}
|
2023-04-14 11:28:26 +02:00
|
|
|
}
|
|
|
|
stage('Archive file') {
|
|
|
|
steps {
|
|
|
|
archiveArtifacts artifacts: 'dataset.csv', fingerprint: true
|
|
|
|
}
|
2023-04-13 22:26:46 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|