This commit is contained in:
s444501 2022-04-02 22:05:04 +02:00
parent e9f058e426
commit 502ce19b4b
2 changed files with 8 additions and 2 deletions

View File

@ -11,6 +11,9 @@ RUN pip3 install kaggle
WORKDIR /ium
ARG KAGGLE_USERNAME
ARG KAGGLE_KEY
COPY ./ium-data.py ./
CMD ./ium-data.py

7
Jenkinsfile vendored
View File

@ -1,5 +1,7 @@
pipeline {
agent any
agent {
dockerfile {additionalBuildArgs "--build-arg KAGGLE_USERNAME=${params.KAGGLE_USERNAME} --build-arg KAGGLE_KEY=${params.KAGGLE_KEY} -t zadanie"}
}
parameters {
string(
@ -35,7 +37,8 @@ pipeline {
sh 'chmod u+x download.sh'
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}","KAGGLE_KEY=${params.KAGGLE_KEY}", "CUTOFF=${params.CUTOFF}"]) {
sh 'echo KAGGLE_USERNAME: $KAGGLE_USERNAME'
sh './download.sh'
// sh './download.sh'
sh "python ium-data.py"
}
archiveArtifacts artifacts: 'd_test.csv, d_dev.csv, d_train.csv'
}