a4ef4af182
Some checks failed
s444354-evaluation/pipeline/head There was a failure building this commit
28 lines
861 B
Plaintext
28 lines
861 B
Plaintext
pipeline {
|
|
agent {
|
|
docker { image 's444354_create_dataset_image:latest' }
|
|
}
|
|
parameters {
|
|
string(name: 'epoch', defaultValue: '1000', description: 'Number of epochs to train model.')
|
|
}
|
|
stages {
|
|
stage('Get arifacts') {
|
|
steps {
|
|
copyArtifacts fingerprintArtifacts: true, projectName: 's444354-create-dataset', selector: lastSuccessful()
|
|
}
|
|
}
|
|
stage('Show stats') {
|
|
steps {
|
|
sh "python3 ./pytorch/pytorch.py $epoch"
|
|
}
|
|
}
|
|
}
|
|
post {
|
|
success {
|
|
archiveArtifacts artifacts: 'pytorch/result.txt', followSymlinks: false
|
|
}
|
|
always {
|
|
emailext body: "${currentBuild.currentResult}", subject: 's444354-training', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms'
|
|
}
|
|
}
|
|
} |