Update 'Jenkinsfile_dataset_stats'

This commit is contained in:
Patryk Gałka 2023-04-19 18:06:23 +02:00
parent 3e7414e004
commit 857737913b

View File

@ -1,6 +1,5 @@
pipeline { pipeline {
agent any agent any
//Definijuemy parametry, które będzie można podać podczas wywoływania zadania
parameters{ parameters{
choice( choice(
choices: ['lastSuccessful()', 'lastCompleted()', 'latestSavedBuild()'], choices: ['lastSuccessful()', 'lastCompleted()', 'latestSavedBuild()'],
@ -8,15 +7,13 @@ pipeline {
name: 'BUILD_SELECTOR' name: 'BUILD_SELECTOR'
)} )}
stages { stages {
stage('clear_all') { stage('clear_before') {
steps { steps {
//Wypisz wartość parametru w konsoli (To nie jest polecenie bash, tylko groovy!) sh 'rm -rf *'
sh 'rm -rf ium_z434686'
} }
} }
stage('checkout') { stage('clone_git') {
steps { steps {
//Wypisz wartość parametru w konsoli (To nie jest polecenie bash, tylko groovy!)
sh 'git clone https://git.wmi.amu.edu.pl/s434686/ium_z434686' sh 'git clone https://git.wmi.amu.edu.pl/s434686/ium_z434686'
} }
} }
@ -34,20 +31,15 @@ pipeline {
} }
} }
steps { steps {
sh 'ls -a'
sh 'python ./ium_z434686/dataset-stats.py' sh 'python ./ium_z434686/dataset-stats.py'
echo 'koniec' archiveArtifacts 'X_test_stats.csv'
archiveArtifacts 'X_test.csv' archiveArtifacts 'X_dev_stats.csv'
archiveArtifacts 'X_dev.csv' archiveArtifacts 'X_train_stats.csv'
archiveArtifacts 'X_train.csv'
} }
} }
stage('Goodbye!') { stage('clear_after!') {
steps { steps {
echo 'Goodbye!' sh 'rm -rf *'
//Zarchiwizuj wynik
archiveArtifacts 'dataset.csv'
} }
} }
} }