ium_z444439/Jenkinsfile_stats
2023-05-11 18:33:54 +02:00

47 lines
1.3 KiB
Plaintext

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