47 lines
1.2 KiB
Groovy
47 lines
1.2 KiB
Groovy
pipeline {
|
|
agent {
|
|
dockerfile true
|
|
}
|
|
stages {
|
|
stage('Copy Archive') {
|
|
steps {
|
|
script {
|
|
step ([$class: 'CopyArtifact',
|
|
projectName: 's434700-create-dataset',
|
|
filter: '*.csv',
|
|
target: 'datasets'])
|
|
}
|
|
}
|
|
}
|
|
stage('checkout: Check out from version control') {
|
|
steps {
|
|
git 'https://git.wmi.amu.edu.pl/s434700/ium_s434700.git'
|
|
}
|
|
}
|
|
stage('learning') {
|
|
steps {
|
|
sh 'python ./learning/ml.py'
|
|
sh "export MLFLOW_TRACKING_URI=http://172.17.0.1:5000"
|
|
sh "python ./learning/ml-mlflow.py"
|
|
}
|
|
}
|
|
stage('archiveArtifacts') {
|
|
steps {
|
|
archiveArtifacts 'model.pt'
|
|
}
|
|
}
|
|
}
|
|
|
|
post {
|
|
success {
|
|
build job: 's434700-evaluation/master'
|
|
mail body: 'SUCCESS TRAINING', subject: 's434700', to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms'
|
|
}
|
|
|
|
failure {
|
|
mail body: 'FAILURE TRAINING', subject: 's434700', to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms'
|
|
}
|
|
|
|
}
|
|
}
|