Add parameters section

This commit is contained in:
Anna Nowak 2021-03-28 23:07:28 +02:00
parent 5044912cad
commit 2878a3dcb8

24
Jenkinsfile vendored
View File

@ -1,5 +1,23 @@
pipeline { pipeline {
agent any agent any
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'
)
string(
defaultValue: '10'
description: 'CUTOFF',
name: 'CUTOFF'
)
}
stages { stages {
stage('checkout: Check out from version control') { stage('checkout: Check out from version control') {
steps { steps {
@ -18,11 +36,7 @@ pipeline {
} }
stage('archive artifacts') { stage('archive artifacts') {
steps { steps {
archiveArtifacts 'test.csv' archiveArtifacts 'test.csv,data_shuf.csv,validation.csv,train.csv,header.csv'
archiveArtifacts 'data_shuf.csv'
archiveArtifacts 'validation.csv'
archiveArtifacts 'train.csv'
archiveArtifacts 'header.csv'
} }
} }
} }