zadanie doker

This commit is contained in:
szymonj98 2022-04-03 13:51:51 +02:00
parent b91cfeb0ef
commit fb4da55cd4

9
Jenkinsfile vendored
View File

@ -1,5 +1,8 @@
pipeline {
agent { dockerfile true }
agent { dockerfile {
additionalBuildArgs "--build-arg KAGGLE_USERNAME=${params.KAGGLE_USERNAME} --build-arg KAGGLE_KEY=${params.KAGGLE_KEY} --build-arg CUTOFF=${params.CUTOFF} -t ium"
}
}
parameters {
string(
defaultValue: 'szymonjadczak',
@ -28,10 +31,8 @@ pipeline {
steps {
echo 'Hello world!!!'
checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[url: 'https://git.wmi.amu.edu.pl/s444386/ium_444386']]])
sh "chmod u+x ./dataset_download.sh"
sh "KAGGLE_USERNAME=${KAGGLE_USERNAME} KAGGLE_KEY=${KAGGLE_KEY} CUTOFF=${CUTOFF} ./dataset_download.sh"
archiveArtifacts 'data.csv'
sh "python3 kagle.py"
archiveArtifacts 'Steam-200k.csv'
}
}
}