Fix archive

This commit is contained in:
AWieczarek 2024-03-24 19:02:45 +01:00
parent 0750829580
commit 6bbe9bd7a6
4 changed files with 14 additions and 3 deletions

2
Jenkinsfile vendored
View File

@ -26,7 +26,7 @@ pipeline {
}
stage('Archive Results') {
steps {
archiveArtifacts artifacts: 'stats.txt', onlyIfSuccessful: true
archiveArtifacts artifacts: 'data/*', onlyIfSuccessful: true
}
}
}

View File

@ -26,7 +26,7 @@ pipeline {
}
stage('Archive Results') {
steps {
archiveArtifacts artifacts: 'stats.txt', onlyIfSuccessful: true
archiveArtifacts artifacts: 'data/*', onlyIfSuccessful: true
}
}
}

View File

@ -1,7 +1,16 @@
#!/bin/bash
echo "------------------ wc all ------------------"
wc -l beer_reviews.csv > stats_all.txt
echo "------------------ wc train ------------------"
wc -l train.csv > stats_train.txt
echo "------------------ wc dev ------------------"
wc -l dev.csv > stats_dev.txt
echo "------------------ wc test ------------------"
wc -l test.csv > stats_test.txt
echo "------------------ wc test ------------------"
mv stats_all.txt stats_train.txt stats_dev.txt stats_test.txt data/

View File

@ -25,4 +25,6 @@ tail -n $test_lines shuffled.csv > test.csv
# Czyszczenie
echo "------------------ Clean ------------------"
rm cutoff_$DATASET_FILE shuffled.csv
rm cutoff_$DATASET_FILE shuffled.csv
mv train.csv dev.csv test.csv data/