ium_470618/JenkinsfileTrain

31 lines
813 B
Plaintext
Raw Normal View History

2023-05-10 16:45:00 +02:00
node {
checkout scm
def dockerimage = docker.build("train-image", "./train")
2023-05-10 16:45:00 +02:00
dockerimage.inside {
stage('Preparation') {
properties([
parameters([
string(
defaultValue: 'default',
description: 'Number of head lines to be taken from test file',
name: 'LEARNING_PARAMETERS',
trim: false)
])
])
copyArtifacts projectName: 's470618-create-dataset', filter: '*.csv', fingerprintArtifacts: true, selector: lastSuccessful(), target: '.'
}
stage('Build') {
2023-05-10 16:56:56 +02:00
withEnv(["LEARNING_PARAMETERS=${params.LEARNING_PARAMETERS}"]) {
2023-05-10 16:45:00 +02:00
sh "./learning.py ${LEARNING_PARAMETERS}"
}
}
stage('artifacts') {
echo 'saving artifacts'
archiveArtifacts 'model.pt'
}
}
}