ium_z434686/Multibranch-Training

44 lines
1.1 KiB
Plaintext

pipeline {
agent any
//Definijuemy parametry, które będzie można podać podczas wywoływania zadania
parameters{
string(
defaultValue: 'master',
description: 'BRANCH',
name: 'BRANCH',
trim: false
)
}
stages {
stage('clear_before') {
steps {
sh 'rm -rf *'
}
}
stage('copy_artifacts') {
steps {
copyArtifacts filter: 'X_test.csv,X_dev.csv,X_train.csv', fingerprintArtifacts: true, projectName: 'z-s434686-create-dataset', selector: workspace()
}
}
stage('Docker') {
agent {
dockerfile {
filename 'Dockerfile'
dir 'ium_z434686'
reuseNode true
}
}
steps {
sh 'python ./ium_z434686/create-dataset.py'
archiveArtifacts 'prediction.csv'
}
}
stage('clear_after') {
steps {
sh 'rm -rf *'
}
}
}
}