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('Configure kaggle') {
|
|
|
|
steps {
|
|
|
|
// Run the maven build
|
|
|
|
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
|
2023-04-12 22:57:01 +02:00
|
|
|
"KAGGLE_KEY=${params.KAGGLE_KEY}" ]) {
|
2023-04-13 22:26:46 +02:00
|
|
|
sh 'echo KAGGLE_USERNAME: $KAGGLE_USERNAME'
|
|
|
|
sh 'kaggle datasets list'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
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 22:26:46 +02:00
|
|
|
sh 'chmod +x ./datasetscript.sh'
|
2023-04-13 22:26:46 +02:00
|
|
|
sh './datasetscript.sh'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|