51 lines
1.3 KiB
Plaintext
51 lines
1.3 KiB
Plaintext
pipeline {
|
|
agent any
|
|
stages {
|
|
stage('Clear_Before') {
|
|
steps {
|
|
sh 'rm -rf *'
|
|
}
|
|
}
|
|
stage('Clone') {
|
|
steps {
|
|
sh 'git clone https://git.wmi.amu.edu.pl/s486867/ium_z486867.git'
|
|
}
|
|
}
|
|
stage('copy_artifacts_from_training') {
|
|
steps {
|
|
copyArtifacts(projectName: 'z-s486867-training', fingerprintArtifacts: true)
|
|
}
|
|
}
|
|
stage('copy_artifacts_from_evaluation') {
|
|
steps {
|
|
copyArtifacts(projectName: 'z-s486867-evaluation', fingerprintArtifacts: true, optional: true)
|
|
}
|
|
}
|
|
stage('copy_artifacts_test') {
|
|
steps {
|
|
copyArtifacts(projectName: 'z-s486867-create-dataset', filter: 'X_test.csv,Y_test.csv', fingerprintArtifacts: true)
|
|
}
|
|
}
|
|
stage('Docker') {
|
|
agent {
|
|
dockerfile {
|
|
filename 'Dockerfile'
|
|
dir 'ium_z486867'
|
|
reuseNode true
|
|
}
|
|
}
|
|
steps {
|
|
sh 'ls -a'
|
|
sh 'python ./ium_z486867/predict.py'
|
|
archiveArtifacts 'prediction.csv'
|
|
archiveArtifacts 'metrics.csv'
|
|
}
|
|
}
|
|
|
|
stage('clear_after') {
|
|
steps {
|
|
sh 'rm -rf *'
|
|
}
|
|
}
|
|
}
|
|
} |