26 lines
778 B
Groovy
26 lines
778 B
Groovy
pipeline {
|
|
agent any
|
|
stages {
|
|
stage('Git Checkout') {
|
|
steps {
|
|
checkout scm
|
|
}
|
|
}
|
|
stage('Copy Artifacts') {
|
|
steps {
|
|
copyArtifacts fingerprintArtifacts: true, projectName: 'z-s464914-create-dataset', selector: buildParameter('BUILD_SELECTOR')
|
|
}
|
|
}
|
|
stage('Train') {
|
|
steps {
|
|
script {
|
|
def customImage = docker.build("custom-image")
|
|
customImage.inside {
|
|
sh 'python3 ./model.py'
|
|
archiveArtifacts artifacts: 'model.pth, predictions.txt', onlyIfSuccessful: true
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |