ium_444018/Jenkinsfile

33 lines
1006 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 {
sh 'python3 ./lab2/main.py'
archiveArtifacts artifacts: 'imdb_top_1000_dev.csv, imdb_top_1000_test.csv, imdb_top_1000_train.csv', followSymlinks: false
}
}
}
}