2023-04-19 18:47:42 +02:00
|
|
|
pipeline {
|
2023-04-19 19:46:29 +02:00
|
|
|
agent any
|
|
|
|
parameters{
|
|
|
|
choice(
|
|
|
|
choices: ['lastSuccessful()', 'lastCompleted()', 'latestSavedBuild()'],
|
|
|
|
description: 'Which build to use for copying artifacts',
|
|
|
|
name: 'BUILD_SELECTOR'
|
|
|
|
)}
|
2023-04-19 18:47:42 +02:00
|
|
|
stages {
|
2023-04-19 19:46:29 +02:00
|
|
|
stage('clear') {
|
2023-04-19 18:47:42 +02:00
|
|
|
steps {
|
2023-04-19 19:46:29 +02:00
|
|
|
sh 'rm -rf *'
|
2023-04-19 18:47:42 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('checkout') {
|
|
|
|
steps {
|
|
|
|
sh 'git clone https://git.wmi.amu.edu.pl/s444439/ium_z444439'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('copy_artifacts') {
|
|
|
|
steps {
|
2023-05-11 18:32:15 +02:00
|
|
|
copyArtifacts filter: 'X_test.csv,X_dev.csv,X_train.csv', fingerprintArtifacts: true, projectName: 'z-s444439-create-dataset', selector: workspace()
|
2023-04-19 18:47:42 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Docker') {
|
|
|
|
agent {
|
2023-04-20 20:41:45 +02:00
|
|
|
docker {
|
|
|
|
image 'shuavii/ium:latest'
|
2023-04-19 18:47:42 +02:00
|
|
|
reuseNode true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
steps {
|
|
|
|
sh 'ls -a'
|
|
|
|
sh 'python ./ium_z444439/stats.py'
|
|
|
|
echo 'process finish'
|
2023-05-11 18:33:54 +02:00
|
|
|
archiveArtifacts 'adult_dev_stats.csv'
|
|
|
|
archiveArtifacts 'adult_test_stats.csv'
|
|
|
|
archiveArtifacts 'adult_train_stats.csv'
|
2023-04-19 18:47:42 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Goodbye!') {
|
|
|
|
steps {
|
2023-04-19 19:46:29 +02:00
|
|
|
sh 'rm -rf *'
|
2023-04-19 18:47:42 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|