30 lines
659 B
Plaintext
30 lines
659 B
Plaintext
pipeline {
|
|
agent {
|
|
docker {
|
|
image 'maciejczajka'
|
|
args '-v /tmp/mlruns:/tmp/mlruns'
|
|
}
|
|
}
|
|
parameters {
|
|
string(
|
|
defaultValue: '100',
|
|
description: 'Number of epochs',
|
|
name: 'EPOCHS',
|
|
trim: false
|
|
)
|
|
}
|
|
stages {
|
|
stage('Script'){
|
|
steps {
|
|
copyArtifacts filter: '*', projectName: 's444356-create-dataset'
|
|
sh "python Biblioteka_DL/dllib-mlflow.py $EPOCHS"
|
|
archiveArtifacts artifacts: 'games_model.pkl'
|
|
sh 'ls -al'
|
|
sh 'cat MLProject'
|
|
sh 'ls mlruns'
|
|
archiveArtifacts artifacts: 'mlruns/**'
|
|
sh 'rm -r mlruns'
|
|
}
|
|
}
|
|
}
|
|
} |