Dodanie 'Jenkinsfile-dataset-stats'

This commit is contained in:
Patryk Łukasiewicz 2023-04-20 15:01:01 +02:00
parent 1d3370581a
commit c532927103

45
Jenkinsfile-dataset-stats Normal file
View File

@ -0,0 +1,45 @@
pipeline {
agent any
parameters{
choice(
choices: ['lastSuccessful()', 'lastCompleted()', 'latestSavedBuild()'],
description: 'Which build to use for copying artifacts',
name: 'BUILD_SELECTOR'
)}
stages {
stage('clear_before') {
steps {
sh 'rm -rf *'
}
}
stage('clone_git') {
steps {
sh 'git clone https://git.wmi.amu.edu.pl/s434743/ium_z434743'
}
}
stage('copy_artifacts') {
steps {
copyArtifacts filter: 'X_test.csv,X_dev.csv,X_train.csv', fingerprintArtifacts: true, projectName: 'z-s434743-create-dataset', selector: workspace()
}
}
stage('Docker') {
agent {
docker {
image 'ezajash/ium:latest'
reuseNode true
}
}
steps {
sh 'python ./ium_z434743/dataset-stats.py'
archiveArtifacts 'X_test_stats.csv'
archiveArtifacts 'X_dev_stats.csv'
archiveArtifacts 'X_train_stats.csv'
}
}
stage('clear_after!') {
steps {
sh 'rm -rf *'
}
}
}
}