ium_458023/JenkinsfileDatasetStats
2023-06-30 20:31:45 +02:00

41 lines
1.0 KiB
Plaintext

pipeline {
agent any
parameters{
buildSelector(
defaultSelector: lastSuccessful(),
description: 'Which build to use for copying artifacts',
name: 'BUILD_SELECTOR'
)
}
stages {
stage('Checkout') {
steps {
checkout scmGit(
branches: [[name: '*/master']],
userRemoteConfigs: [[url: 'https://git.wmi.amu.edu.pl/s487183/ium_458023.git']]
)
}
}
stage('Prepare stats') {
agent {
// docker {
// image 's458023/ium:1'
// reuseNode true
// }
dockerfile {
filename 'lab4.dockerfile'
reuseNode true
}
}
steps {
copyArtifacts projectName: 'z-s458023-create-dataset'
sh 'bash /prepare_dataset.sh'
sh 'mkdir sacred-files'
sh 'python3 wines_train.py'
sh 'python3 predict.py'
archiveArtifacts 'my_runs/**'
}
}
}
}