add jenkinsfile_train
Some checks failed
s444356-training/pipeline/head There was a failure building this commit
Some checks failed
s444356-training/pipeline/head There was a failure building this commit
This commit is contained in:
parent
7903e996a9
commit
1a62dd75ea
@ -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
24
Jenkinsfile_train
Normal 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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user