ium_444018/Jenkinsfile

33 lines
929 B
Plaintext
Raw Normal View History

2022-03-27 23:27:29 +02:00
pipeline {
2022-04-03 22:24:43 +02:00
agent {
dockerfile {
2022-06-05 23:08:04 +02:00
additionalBuildArgs "--build-arg KAGGLE_USERNAME=${params.KAGGLE_USERNAME} --build-arg KAGGLE_KEY=${params.KAGGLE_KEY} --build-arg CUTOFF=${params.CUTOFF} -t docker_image"
2022-04-03 22:24:43 +02:00
}
}
parameters {
string(
defaultValue: 'szymonparafinski',
description: 'Kaggle username',
name: 'KAGGLE_USERNAME',
trim: false
)
password(
2022-04-11 08:41:07 +02:00
defaultValue: '',
2022-04-03 22:24:43 +02:00
description: 'Kaggle token taken from kaggle.json file, as described in https://github.com/Kaggle/kaggle-api#api-credentials',
name: 'KAGGLE_KEY'
)
string(
2022-04-04 08:21:32 +02:00
defaultValue: '100',
2022-04-03 22:24:43 +02:00
description: 'Cutoff lines',
name: 'CUTOFF'
)
}
2022-03-31 21:28:00 +02:00
stages {
2022-04-03 22:24:43 +02:00
stage('Script'){
steps {
2022-04-03 23:46:59 +02:00
archiveArtifacts artifacts: 'data_test.csv, data_train.csv, data_dev.csv', followSymlinks: false
2022-04-03 22:24:43 +02:00
}
}
}
2022-06-05 22:59:43 +02:00
}