ium_464914/Jenkinsfile
2024-03-26 19:32:48 +01:00

28 lines
755 B
Groovy

pipeline {
agent any
parameters {
string(name: 'KAGGLE_USERNAME', defaultValue: 'alicjaszulecka', description: 'Kaggle username')
password(name: 'KAGGLE_KEY', defaultValue:'', description: 'Kaggle Key')
}
stages {
stage('Git Checkout') {
steps {
checkout scm
}
}
stage('Cleanup') {
steps {
sh 'rm -rf artifacts'
}
}
stage('Build') {
steps {
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
"KAGGLE_KEY=${params.KAGGLE_KEY}" ]) {
sh 'bash ./get_dataset.sh'
}
}
}
}
}