ium_434760/Jenkinsfile

44 lines
1.3 KiB
Plaintext
Raw Normal View History

2021-03-28 19:38:58 +02:00
pipeline {
agent any
2021-03-28 23:07:28 +02:00
parameters{
string(
defaultValue: 'annadnowak',
description: 'Kaggle username',
name: 'KAGGLE_USERNAME',
trim: false
2021-03-28 23:09:24 +02:00
)
2021-03-28 23:07:28 +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'
)
string(
2021-03-28 23:09:24 +02:00
defaultValue: '10',
2021-03-28 23:07:28 +02:00
description: 'CUTOFF',
name: 'CUTOFF'
)
}
2021-03-28 19:38:58 +02:00
stages {
2021-03-28 22:13:52 +02:00
stage('checkout: Check out from version control') {
steps {
git 'https://git.wmi.amu.edu.pl/s434760/ium_434760.git'
}
}
stage('sh: Shell Script')
{
steps {
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
2021-03-28 23:17:05 +02:00
"KAGGLE_KEY=${params.KAGGLE_KEY}", "CUTOFF=${params.CUTOFF}"]) {
2021-03-28 22:35:53 +02:00
sh "chmod 777 ./script.sh"
2021-03-28 22:13:52 +02:00
sh './script.sh'
2021-03-28 23:17:05 +02:00
}
2021-03-28 22:13:52 +02:00
}
}
stage('archive artifacts') {
2021-03-28 19:38:58 +02:00
steps {
2021-03-28 23:07:28 +02:00
archiveArtifacts 'test.csv,data_shuf.csv,validation.csv,train.csv,header.csv'
2021-03-28 19:38:58 +02:00
}
}
}
}