ium_444417/Jenkinsfile3

54 lines
1.4 KiB
Plaintext
Raw Normal View History

2022-04-25 19:16:01 +02:00
pipeline {
2022-05-03 17:44:11 +02:00
agent {
2022-05-21 12:33:51 +02:00
dockerfile {
2022-05-14 12:19:54 +02:00
args '-v /mlruns:/mlruns'
}
2022-05-03 17:44:11 +02:00
}
2022-05-04 18:39:09 +02:00
parameters{
string(
defaultValue: '5',
description: 'Epoch number',
name: 'EPOCH_NUMBER'
)
}
2022-04-25 19:16:01 +02:00
stages {
2022-05-03 14:20:21 +02:00
stage('Copy') {
2022-04-25 20:21:55 +02:00
steps {
2022-04-25 21:31:57 +02:00
copyArtifacts projectName: 's444417-create-dataset'
2022-04-25 22:11:33 +02:00
sh 'ls -la'
2022-05-04 18:43:44 +02:00
sh 'echo $EPOCH_NUMBER'
2022-05-14 11:52:00 +02:00
sh 'python3 ./lab8/trainScript.py'
2022-05-03 23:00:45 +02:00
}
}
stage('Archive') {
steps {
dir('saved_model') {
2022-05-04 15:26:55 +02:00
archiveArtifacts artifacts: '**/**'
2022-05-03 23:00:45 +02:00
}
2022-05-08 09:47:39 +02:00
dir('my_runs') {
archiveArtifacts artifacts: '**/**'
}
2022-05-03 22:09:18 +02:00
}
}
2022-05-03 22:10:55 +02:00
stage('Starting eval job') {
2022-05-03 22:09:18 +02:00
steps {
2022-05-04 15:37:38 +02:00
build job: 's444417-evaluation/master', wait: false
2022-05-03 14:20:21 +02:00
}
}
2022-05-14 12:12:20 +02:00
stage('Archive mlflow') {
steps {
sh 'cd ./lab8'
2022-05-14 15:13:55 +02:00
sh 'tar -czf mlruns.tar.gz mlruns/'
archiveArtifacts 'mlruns.tar.gz'
2022-05-14 12:12:20 +02:00
}
}
2022-04-25 19:16:01 +02:00
}
2022-05-04 15:58:17 +02:00
options {
copyArtifactPermission('s444417-evaluation');
}
2022-04-25 22:44:19 +02:00
post {
always {
emailext body: "${currentBuild.currentResult}", subject: 's444417-testing build status', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms'
2022-04-25 22:42:35 +02:00
}
}
2022-04-25 19:16:01 +02:00
}