48 lines
1.3 KiB
Plaintext
48 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 {
|
|
dockerfile {
|
|
filename 'Dockerfile'
|
|
dir 'ium_z444439'
|
|
reuseNode true
|
|
}
|
|
}
|
|
steps {
|
|
sh 'ls -a'
|
|
sh 'python ./ium_z444439/stats.py'
|
|
echo 'process finish'
|
|
archiveArtifacts 'adult_test_stats.csv'
|
|
archiveArtifacts 'adult_dev_stats.csv'
|
|
archiveArtifacts 'adult_train_stats.csv'
|
|
}
|
|
}
|
|
stage('Goodbye!') {
|
|
steps {
|
|
sh 'rm -rf *'
|
|
}
|
|
}
|
|
}
|
|
} |