54 lines
1.2 KiB
Plaintext
54 lines
1.2 KiB
Plaintext
pipeline {
|
|
agent any
|
|
parameters{
|
|
string(
|
|
defaultValue: 'master',
|
|
description: 'BRANCH',
|
|
name: 'BRANCH',
|
|
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 {
|
|
copyArtifacts(projectName: 'z-s434686-training/master', fingerprintArtifacts: true)
|
|
}
|
|
}
|
|
stage('copy_artifacts_from_inside') {
|
|
steps {
|
|
copyArtifacts(projectName: 'z-s434686-evaluation/master', fingerprintArtifacts: true)
|
|
}
|
|
}
|
|
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.txt'
|
|
}
|
|
}
|
|
stage('clear_after') {
|
|
steps {
|
|
sh 'rm -rf *'
|
|
}
|
|
}
|
|
}
|
|
} |