Zaktualizuj 'Jenkinsfile'

This commit is contained in:
Michał Dudziak 2023-05-10 12:32:40 +02:00
parent 1e3031cd03
commit fb70f5ff1d

32
Jenkinsfile vendored
View File

@ -1,20 +1,24 @@
node {
pipeline {
agent {
dockerfile true
}
checkout scm
docker.image('ubuntu:latest').inside {
stage('Copy data') {
copyArtifacts filter: 'Car_Prices_Poland_Kaggle.csv', fingerprintArtifacts: true, projectName: 's452662-create-dataset', selector: lastSuccessful()
}
stage('Run') {
sh 'apt-get install python'
sh 'python sacred.py'
stages{
stage('Copy data') {
steps {
copyArtifacts(projectName: 's452662-create-dataset', selector: lastSuccessful())
}
}
stage('Save model into artifact') {
archiveArtifacts artifacts: 'model.h5', followSymlinks: false
stage('Run'){
steps {
sh 'python sacred.py'
}
}
stage('Save model') {
steps{
archiveArtifacts 'model.h5'
}
}
}
}
}