ium_434760/Jenkinsfile

34 lines
980 B
Plaintext
Raw Normal View History

2021-03-28 19:38:58 +02:00
pipeline {
2021-04-11 22:19:45 +02:00
agent {
docker { image 'adnovac/ium_s434760:latest' }
2021-03-28 23:07:28 +02:00
}
2021-04-11 22:25:07 +02:00
parameters {
string(
defaultValue: 'annadnowak',
description: 'Kaggle username',
name: 'KAGGLE_USERNAME',
trim: false
)
password(
defaultValue: '',
description: 'Kaggle token taken from kaggle.json file, as described in https://github.com/Kaggle/kaggle-api#api-credentials',
name: 'KAGGLE_KEY'
)
}
stages {
2021-04-11 23:06:50 +02:00
stage('download and process data')
2021-04-11 22:25:07 +02:00
{
steps {
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
"KAGGLE_KEY=${params.KAGGLE_KEY}"]) {
sh 'python3.8 \"Zadanie 1.py\"'
}
2021-03-28 22:13:52 +02:00
}
}
2021-04-11 22:25:07 +02:00
stage('archive artifacts') {
steps {
2021-04-11 22:37:21 +02:00
archiveArtifacts 'test.csv,data.csv,dev.csv,train.csv'
2021-04-11 22:25:07 +02:00
}
2021-03-28 19:38:58 +02:00
}
}
2021-04-11 22:19:45 +02:00
}