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'
|
|
|
|
}
|
|
|
|
}
|
2023-05-11 00:32:23 +02:00
|
|
|
stage('copy_artifacts') {
|
|
|
|
steps {
|
|
|
|
copyArtifacts(projectName: 'z-s434686-training/master', fingerprintArtifacts: true)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('copy_artifacts_from_inside') {
|
|
|
|
steps {
|
|
|
|
copyArtifacts(projectName: 'z-s434686-evaluation/master', fingerprintArtifacts: true, optional: true)
|
|
|
|
}
|
|
|
|
}
|
2023-05-11 19:30:26 +02:00
|
|
|
stage('copy_artifacts_test_data') {
|
|
|
|
steps {
|
|
|
|
copyArtifacts(projectName: 'z-s434686-create-dataset', filter: 'X_test.csv,Y_test.csv', fingerprintArtifacts: true)
|
|
|
|
}
|
|
|
|
}
|
2023-05-11 00:32:23 +02:00
|
|
|
stage('Docker') {
|
|
|
|
agent {
|
|
|
|
dockerfile {
|
|
|
|
filename 'Dockerfile'
|
|
|
|
dir 'ium_z434686'
|
|
|
|
reuseNode true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
steps {
|
|
|
|
sh 'ls -a'
|
|
|
|
sh 'python ./ium_z434686/predict.py'
|
2023-05-11 00:51:13 +02:00
|
|
|
sh 'python ./ium_z434686/plot.py'
|
2023-05-11 00:32:23 +02:00
|
|
|
archiveArtifacts 'prediction.csv'
|
|
|
|
archiveArtifacts 'metrics.csv'
|
2023-05-11 00:49:46 +02:00
|
|
|
archiveArtifacts 'metrics.png'
|
2023-05-11 00:32:23 +02:00
|
|
|
}
|
|
|
|
}
|
2023-05-11 00:31:58 +02:00
|
|
|
|
2023-05-10 23:49:57 +02:00
|
|
|
|
2023-05-10 22:53:25 +02:00
|
|
|
stage('clear_after') {
|
|
|
|
steps {
|
|
|
|
sh 'rm -rf *'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|