29 lines
786 B
Groovy
29 lines
786 B
Groovy
pipeline {
|
|
agent any
|
|
|
|
parameters {
|
|
string(name: 'KAGGLE_USERNAME', defaultValue: '', description: 'Kaggle username')
|
|
password(name: 'KAGGLE_KEY', defaultValue:'', description: 'Kaggle Key')
|
|
}
|
|
stages {
|
|
stage('Git Checkout') {
|
|
steps {
|
|
git "https://git.wmi.amu.edu.pl/s464914/ium_464914.git"
|
|
}
|
|
}
|
|
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'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |