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:18:07 +02:00
|
|
|
build job: 'z-s434686-training/master', parameters: [
|
2023-05-11 00:15:12 +02:00
|
|
|
string(name: 'BRANCH', value: env.BRANCH_NAME),
|
2023-05-11 00:05:17 +02:00
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
2023-05-10 21:15:58 +02:00
|
|
|
}
|