ium_444501/training.Jenkinsfile

31 lines
618 B
Plaintext
Raw Normal View History

2022-05-01 14:20:21 +02:00
pipeline {
agent {
docker {image 'zadanie'}
}
parameters {
buildSelector(
defaultSelector: lastSuccessful(),
description: 'Which build to use for copying artifacts',
name: 'BUILD_SELECTOR'
)
}
stages {
stage('Copy artifacts') {
steps {
copyArtifacts fingerprintArtifacts: true, projectName: 's444501-create-dataset', selector: buildParameter('BUILD_SELECTOR')
}
}
stage('Train model') {
steps {
2022-05-01 14:28:34 +02:00
sh 'python biblioteki_ml.py'
2022-05-01 14:20:21 +02:00
}
}
stage('Archive model') {
steps {
archiveArtifacts artifacts: 'model.pkl'
}
}
}
}