ium_444380/Jenkinsfile
Kamil Guttmann 6c8a16fe04
Some checks failed
s444380-training/pipeline/head There was a failure building this commit
Training jenkinsfile
2022-05-03 14:40:26 +02:00

42 lines
1.1 KiB
Groovy

pipeline {
agent {
dockerfile {
additionalBuildArgs '-t ium'
args '-e KAGGLE_USERNAME=${params.KAGGLE_USERNAME} -e KAGGLE_KEY=${params.KAGGLE_KEY}'
}
}
parameters {
string (
defaultValue: 'kamilguttmann',
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: "260000",
description: 'Use CUTOFF random examples from dataset',
name: 'CUTOFF'
)
}
stages {
stage('Hello') {
steps {
echo 'Hello World'
}
}
stage("Download data") {
steps {
sh "./download_data.sh"
sh "python3 clean_and_split_data.py"
archiveArtifacts artifacts: "crime_test.csv, crime_dev.csv, crime_train.csv", onlyIfSuccessful: true
build job: "s444380-training/master"
}
}
}
}