ium_478855/Jenkinsfile

41 lines
838 B
Plaintext
Raw Normal View History

2022-03-27 17:07:12 +02:00
pipeline {
agent any
2022-03-27 21:47:40 +02:00
2022-03-27 17:07:12 +02:00
parameters {
string (
2022-03-27 21:47:40 +02:00
defaultValue: 'h7557h',
description: 'Kaggle username',
name: 'KAGGLE_USERNAME',
trim: false
),
password (
defaultValue: '926ee9d10da62b6d8448a80a49404be0',
description: 'Kaggle token',
name: 'KAGGLE_KEY',
)
2022-03-27 17:07:12 +02:00
}
2022-03-27 21:47:40 +02:00
2022-03-27 17:07:12 +02:00
stages {
2022-03-27 21:47:40 +02:00
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') {
2022-03-27 17:07:12 +02:00
steps {
2022-03-27 21:47:40 +02:00
echo 'Split data'
2022-03-27 17:07:12 +02:00
}
}
2022-03-27 21:47:40 +02:00
stage('Statistics!') {
2022-03-27 17:07:12 +02:00
steps {
2022-03-27 21:47:40 +02:00
echo 'Statistics'
2022-03-27 17:07:12 +02:00
//Zarchiwizuj wynik
2022-03-27 21:47:40 +02:00
//archiveArtifacts 'statistics.txt'
2022-03-27 17:07:12 +02:00
}
}
}
}