ium_z434686/Multibranch-Training

56 lines
1.3 KiB
Plaintext
Raw Normal View History

2023-05-10 21:15:58 +02:00
pipeline {
agent any
2023-05-10 21:16:43 +02:00
parameters{
string(
2023-05-10 22:38:14 +02:00
defaultValue: '500',
description: 'EPOCHS',
name: 'EPOCHS',
2023-05-10 21:16:43 +02:00
trim: false
)
}
2023-05-10 21:15:58 +02:00
stages {
stage('clear_before') {
steps {
sh 'rm -rf *'
}
}
2023-05-10 22:32:39 +02:00
stage('Clone Git') {
steps {
sh 'git clone https://git.wmi.amu.edu.pl/s434686/ium_z434686'
}
}
2023-05-10 21:15:58 +02:00
stage('copy_artifacts') {
steps {
2023-05-10 22:30:13 +02:00
copyArtifacts(projectName: 'z-s434686-create-dataset', fingerprintArtifacts: true)
2023-05-10 21:15:58 +02:00
}
}
stage('Docker') {
agent {
dockerfile {
filename 'Dockerfile'
dir 'ium_z434686'
reuseNode true
}
}
steps {
2023-05-10 22:33:47 +02:00
sh 'python ./ium_z434686/train.py'
archiveArtifacts 'test/'
2023-05-10 23:10:59 +02:00
archiveArtifacts 'X_test.csv'
archiveArtifacts 'Y_test.csv'
2023-05-10 21:15:58 +02:00
}
}
stage('clear_after') {
steps {
sh 'rm -rf *'
}
}
}
2023-05-11 00:05:17 +02:00
post {
always {
2023-05-11 00:12:50 +02:00
build 'z-s434686-training', parameters: [
2023-05-11 00:05:17 +02:00
string(name: 'BRANCH', value: env.BRANCH_NAME)
]
}
}
2023-05-10 21:15:58 +02:00
}