ium_z444439/Jenkinsfile_stats
2023-05-11 18:27:25 +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: 'adult_test.csv,adult_dev.csv,adult_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 'X_test_stats.csv'
archiveArtifacts 'X_dev_stats.csv'
archiveArtifacts 'X_train_stats.csv'
}
}
stage('Goodbye!') {
steps {
sh 'rm -rf *'
}
}
}
}