ium_444380/Jenkinsfile

42 lines
1.1 KiB
Plaintext
Raw Normal View History

2022-03-21 11:01:23 +01:00
pipeline {
2022-04-03 19:31:33 +02:00
agent {
2022-04-03 20:15:35 +02:00
dockerfile {
2022-04-03 20:22:15 +02:00
additionalBuildArgs '-t ium'
args '-e KAGGLE_USERNAME=${params.KAGGLE_USERNAME} -e KAGGLE_KEY=${params.KAGGLE_KEY}'
2022-04-03 20:15:35 +02:00
}
2022-04-03 19:31:33 +02:00
}
2022-03-27 11:48:04 +02:00
parameters {
string (
defaultValue: 'kamilguttmann',
description: 'Kaggle username',
name: 'KAGGLE_USERNAME',
trim: false
2022-03-27 11:52:05 +02:00
)
2022-03-27 11:48:04 +02:00
password(
defaultValue: '',
description: 'Kaggle token taken from kaggle.json file, as described in https://github.com/Kaggle/kaggle-api#api-credentials',
name: 'KAGGLE_KEY'
)
2022-03-27 12:25:33 +02:00
string(
defaultValue: "260000",
description: 'Use CUTOFF random examples from dataset',
name: 'CUTOFF'
)
2022-03-27 11:48:04 +02:00
}
2022-03-21 11:01:23 +01:00
stages {
stage('Hello') {
steps {
echo 'Hello World'
}
2022-03-27 11:52:05 +02:00
}
2022-03-27 11:48:04 +02:00
stage("Download data") {
steps {
2022-04-03 20:27:15 +02:00
sh "./download_data.sh"
sh "python3 clean_and_split_data.py"
2022-04-10 18:34:20 +02:00
archiveArtifacts artifacts: "crime_test.csv, crime_dev.csv, crime_train.csv", onlyIfSuccessful: true
2022-05-03 14:40:26 +02:00
build job: "s444380-training/master"
2022-04-03 20:22:15 +02:00
}
2022-03-21 11:01:23 +01:00
}
}
}