ium_z434686/Jenkinsfile_dataset_stats

42 lines
1.1 KiB
Plaintext
Raw Normal View History

2023-04-18 20:37:10 +02:00
pipeline {
agent any
2023-04-19 18:06:23 +02:00
parameters{
choice(
choices: ['lastSuccessful()', 'lastCompleted()', 'latestSavedBuild()'],
description: 'Which build to use for copying artifacts',
name: 'BUILD_SELECTOR'
)}
2023-04-18 20:37:10 +02:00
stages {
2023-04-19 18:06:23 +02:00
stage('clear_before') {
2023-04-18 20:37:10 +02:00
steps {
2023-04-19 18:06:23 +02:00
sh 'rm -rf *'
2023-04-18 20:37:10 +02:00
}
}
2023-04-19 18:06:23 +02:00
stage('clone_git') {
2023-04-18 20:37:10 +02:00
steps {
sh 'git clone https://git.wmi.amu.edu.pl/s434686/ium_z434686'
}
}
2023-04-18 20:54:34 +02:00
stage('copy_artifacts') {
steps {
2023-04-19 17:18:38 +02:00
copyArtifacts filter: 'X_test.csv,X_dev.csv,X_train.csv', fingerprintArtifacts: true, projectName: 'z-s434686-create-dataset', selector: workspace()
}
}
stage('Docker') {
2023-04-19 18:38:10 +02:00
agent {
2023-04-19 18:44:06 +02:00
docker { image 'bombozaur666/ium:latest' }
2023-04-19 17:18:38 +02:00
}
steps {
sh 'python ./ium_z434686/dataset-stats.py'
2023-04-19 18:06:23 +02:00
archiveArtifacts 'X_test_stats.csv'
archiveArtifacts 'X_dev_stats.csv'
archiveArtifacts 'X_train_stats.csv'
2023-04-18 20:54:34 +02:00
}
}
2023-04-19 18:06:23 +02:00
stage('clear_after!') {
2023-04-18 21:00:26 +02:00
steps {
2023-04-19 18:06:23 +02:00
sh 'rm -rf *'
2023-04-18 21:00:26 +02:00
}
}
2023-04-18 20:37:10 +02:00
}
}