2023-05-10 22:53:25 +02:00
|
|
|
pipeline {
|
|
|
|
agent any
|
|
|
|
parameters{
|
|
|
|
string(
|
2023-05-10 22:53:52 +02:00
|
|
|
defaultValue: 'master',
|
|
|
|
description: 'BRANCH',
|
|
|
|
name: 'BRANCH',
|
2023-05-10 22:53:25 +02:00
|
|
|
trim: false
|
|
|
|
)
|
|
|
|
}
|
|
|
|
stages {
|
|
|
|
stage('clear_before') {
|
|
|
|
steps {
|
|
|
|
sh 'rm -rf *'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Clone Git') {
|
|
|
|
steps {
|
|
|
|
sh 'git clone https://git.wmi.amu.edu.pl/s434686/ium_z434686'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
stage('copy_artifacts') {
|
|
|
|
steps {
|
2023-05-10 22:57:09 +02:00
|
|
|
copyArtifacts(projectName: 'z-s434686-training/master', fingerprintArtifacts: true)
|
2023-05-10 22:53:25 +02:00
|
|
|
}
|
|
|
|
}
|
2023-05-10 23:43:25 +02:00
|
|
|
stage('copy_artifacts_from_inside') {
|
2023-05-10 23:41:41 +02:00
|
|
|
steps {
|
2023-05-10 23:58:09 +02:00
|
|
|
copyArtifacts(projectName: 'z-s434686-evaluation/master', fingerprintArtifacts: true, optional: true)
|
2023-05-10 23:41:41 +02:00
|
|
|
}
|
|
|
|
}
|
2023-05-10 23:50:33 +02:00
|
|
|
stage('Docker') {
|
|
|
|
agent {
|
|
|
|
dockerfile {
|
|
|
|
filename 'Dockerfile'
|
|
|
|
dir 'ium_z434686'
|
|
|
|
reuseNode true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
steps {
|
|
|
|
sh 'ls -a'
|
|
|
|
sh 'python ./ium_z434686/predict.py'
|
|
|
|
archiveArtifacts 'prediction.csv'
|
|
|
|
archiveArtifacts 'metrics.csv'
|
|
|
|
}
|
|
|
|
}
|
2023-05-10 23:49:57 +02:00
|
|
|
|
2023-05-10 22:53:25 +02:00
|
|
|
stage('clear_after') {
|
|
|
|
steps {
|
|
|
|
sh 'rm -rf *'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|