ium_444018/Jenkinsfile

32 lines
990 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-04-03 23:19:11 +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(
defaultValue: 'a95757bcf7f0def396b5294d971bf6dd',
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-03 22:26:22 +02:00
defaultValue: '600',
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:44:21 +02:00
archiveArtifacts artifacts: 'imdb_top_1000_dev2.csv, imdb_top_1000_test2.csv, imdb_top_1000_train2.csv', followSymlinks: false
2022-04-03 22:24:43 +02:00
}
}
}
}