ium_478855/Jenkinsfile
2022-03-27 21:47:40 +02:00

41 lines
838 B
Groovy

pipeline {
agent any
parameters {
string (
defaultValue: 'h7557h',
description: 'Kaggle username',
name: 'KAGGLE_USERNAME',
trim: false
),
password (
defaultValue: '926ee9d10da62b6d8448a80a49404be0',
description: 'Kaggle token',
name: 'KAGGLE_KEY',
)
}
stages {
stage('Build') {
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
"KAGGLE_KEY=${params.KAGGLE_KEY}" ]) {
sh 'echo KAGGLE_USERNAME: $KAGGLE_USERNAME'
sh 'kaggle dataset list'
}
stage('Split data') {
steps {
echo 'Split data'
}
}
stage('Statistics!') {
steps {
echo 'Statistics'
//Zarchiwizuj wynik
//archiveArtifacts 'statistics.txt'
}
}
}
}