Kamil Guttmann
6c8a16fe04
Some checks failed
s444380-training/pipeline/head There was a failure building this commit
45 lines
1.4 KiB
Plaintext
45 lines
1.4 KiB
Plaintext
pipeline {
|
|
agent {
|
|
docker { image 'kamilguttmann/ium:latest' }
|
|
}
|
|
parameters {
|
|
string (
|
|
defaultValue: '100',
|
|
description: 'Epochs',
|
|
name: 'EPOCHS'
|
|
)
|
|
buildSelector(
|
|
defaultSelector: lastSuccessful(),
|
|
description: 'Which build to use for copying artifacts',
|
|
name: 'BUILD_SELECTOR'
|
|
)
|
|
}
|
|
stages {
|
|
stage('Copy artifacts') {
|
|
steps {
|
|
copyArtifacts fingerprintArtifacts: true, projectName: 's444380-create-dataset', selector: buildParameter('BUILD_SELECTOR')
|
|
}
|
|
}
|
|
stage("Checkout git") {
|
|
steps {
|
|
checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[credentialsId: 's444380', url: 'https://git.wmi.amu.edu.pl/s444380/ium_444380.git']]])
|
|
}
|
|
}
|
|
stage("Train model") {
|
|
steps {
|
|
sh "./train_model.py $EPOCHS"
|
|
archiveArtifacts artifacts: "./model/*", onlyIfSuccessful: true
|
|
}
|
|
}
|
|
}
|
|
post {
|
|
success {
|
|
emailtext body: "SUCCESS", subject: "s444380-training", to: "e19191c5.uam.onmicrosoft.com@emea.teams.ms"
|
|
}
|
|
|
|
failure {
|
|
emailtext body: "FAILURE", subject: "s444380-training", to: "e19191c5.uam.onmicrosoft.com@emea.teams.ms"
|
|
}
|
|
}
|
|
}
|