45 lines
1.2 KiB
Plaintext
45 lines
1.2 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_before') {
|
|
steps {
|
|
sh 'rm -rf *'
|
|
}
|
|
}
|
|
stage('clone_git') {
|
|
steps {
|
|
sh 'git clone https://git.wmi.amu.edu.pl/s434686/ium_z434686'
|
|
}
|
|
}
|
|
stage('copy_artifacts') {
|
|
steps {
|
|
copyArtifacts filter: 'X_test.csv,X_dev.csv,X_train.csv', fingerprintArtifacts: true, projectName: 'z-s434686-create-dataset', selector: workspace()
|
|
}
|
|
}
|
|
stage('Docker') {
|
|
agent {
|
|
docker {
|
|
image 'bombozaur666/ium:latest'
|
|
reuseNode true
|
|
}
|
|
}
|
|
steps {
|
|
sh 'python ./ium_z434686/dataset-stats.py'
|
|
archiveArtifacts 'X_test_stats.csv'
|
|
archiveArtifacts 'X_dev_stats.csv'
|
|
archiveArtifacts 'X_train_stats.csv'
|
|
}
|
|
}
|
|
stage('clear_after!') {
|
|
steps {
|
|
sh 'rm -rf *'
|
|
}
|
|
}
|
|
}
|
|
} |