ium_z444439/Jenkinsfile_training

49 lines
1.1 KiB
Plaintext
Raw Normal View History

2023-05-10 22:50:54 +02:00
pipeline {
2023-05-11 18:55:10 +02:00
agent any
parameters{
string(
defaultValue: '300',
description: 'EPOCHS',
2023-05-10 22:50:54 +02:00
name: 'EPOCHS',
2023-05-11 18:55:10 +02:00
trim: false
)
2023-05-10 22:50:54 +02:00
}
stages {
2023-05-11 18:55:10 +02:00
stage('Clear_Before') {
steps {
sh 'rm -rf *'
}
}
stage('Clone') {
steps {
sh 'git clone https://git.wmi.amu.edu.pl/s444439/ium_z444439'
}
}
2023-05-10 22:50:54 +02:00
2023-05-11 18:55:10 +02:00
stage('copy_artifacts') {
steps {
copyArtifacts(projectName: 'z-s444439-create-dataset', fingerprintArtifacts: true)
}
}
stage('Docker') {
agent {
dockerfile {
filename 'Dockerfile'
dir 'ium_z444439'
reuseNode true
}
}
steps {
sh 'python ./ium_z444439/train.py'
archiveArtifacts 'model/'
archiveArtifacts 'X_test.csv'
archiveArtifacts 'Y_test.csv'
}
}
stage('Clear_After') {
steps {
sh 'rm -rf *'
}
}
2023-05-11 19:15:46 +02:00
}
}