ium_464863/models/Jenkinsfile

39 lines
932 B
Plaintext
Raw Normal View History

pipeline {
agent any
stages {
stage('Clone repository') {
steps {
checkout scm
}
}
stage('Copy artifacts') {
agent {
dockerfile {
filename 'Dockerfile'
reuseNode true
}
}
steps {
copyArtifacts(projectName: 'z-s464863-create-dataset', filter: 'datasets/*', selector: lastSuccessful())
}
}
stage('Create model') {
agent {
dockerfile {
filename 'Dockerfile'
reuseNode true
}
}
steps {
sh "chmod +x ./create_model.py"
sh "python3 ./create_model.py"
2024-04-19 10:46:26 +02:00
archiveArtifacts artifacts: 'models/model.pth', onlyIfSuccessful: true
}
}
}
}