2024-04-19 10:34:35 +02:00
|
|
|
pipeline {
|
|
|
|
agent any
|
|
|
|
|
2024-04-19 11:03:31 +02:00
|
|
|
parameters {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2024-04-19 10:34:35 +02:00
|
|
|
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
|
2024-04-19 10:34:35 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|