add jenkinsfile_train
Some checks failed
s444356-training/pipeline/head There was a failure building this commit

This commit is contained in:
Maciej Czajka 2022-05-02 14:52:26 +02:00
parent 7903e996a9
commit 1a62dd75ea
2 changed files with 25 additions and 1 deletions

View File

@ -31,5 +31,5 @@ COPY Zajecia_2/main.py .
COPY Biblioteka_DL/dllib.py .
COPY Biblioteka_DL/all_games.csv .
RUN ./download.sh
#RUN ./download.sh
#CMD ["python3", "./dllib.py"]

24
Jenkinsfile_train Normal file
View File

@ -0,0 +1,24 @@
pipeline {
agent {
dockerfile {
additionalBuildArgs "--build-arg KAGGLE_USERNAME=${params.KAGGLE_USERNAME} --build-arg KAGGLE_KEY=${params.KAGGLE_KEY} --build-arg CUTOFF=${params.CUTOFF} -t maciejczajka"
}
}
parameters {
string(
defaultValue: '1000',
description: 'Number of epochs',
name: 'EPOCHS',
trim: false
)
}
stages {
stage('Script'){
steps {
copyArtifacts filter: '*', projectName: 's444356-create-dataset'
sh 'python3 ./Biblioteka_DL/dllib.py $EPOCHS'
archiveArtifacts artifacts: 'games_model.pkl', followSymlinks: false
}
}
}
}