From 6f1f4c00f3cfe7a5a12ae3b4f26c33cc4814dac6 Mon Sep 17 00:00:00 2001 From: PawelDopierala Date: Tue, 2 Apr 2024 20:45:01 +0200 Subject: [PATCH] fix error and change stats script --- Jenkinsfile | 2 +- JenkinsfileStats | 5 ++++- data_stats.sh | 4 +++- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 325c7e9..6326e90 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -42,7 +42,7 @@ pipeline { } stage('Artifacts') { steps { - def artifactsList = ['hp_train.csv', 'hp_dev.csv', 'hp_test.csv''] + def artifactsList = ['hp_train.csv', 'hp_dev.csv', 'hp_test.csv'] artifactsList.each { artifact -> archiveArtifacts artifacts: artifact } diff --git a/JenkinsfileStats b/JenkinsfileStats index 8e008fb..dd226cd 100644 --- a/JenkinsfileStats +++ b/JenkinsfileStats @@ -31,7 +31,10 @@ pipeline { } stage('Artifacts') { steps { - archiveArtifacts artifacts: 'stats.txt' + def artifactsList = ['hp_train_stats.csv', 'hp_dev_stats.csv', 'hp_test_stats.csv''] + artifactsList.each { artifact -> + archiveArtifacts artifacts: artifact + } } } } diff --git a/data_stats.sh b/data_stats.sh index dbad677..e0ad093 100644 --- a/data_stats.sh +++ b/data_stats.sh @@ -1,2 +1,4 @@ #!/bin/bash -wc -l processed_data.txt > stats.txt \ No newline at end of file +wc -l hp_train.csv > hp_train_stats.csv +wc -l hp_dev.csv > hp_dev_stats.csv +wc -l hp_test.csv > hp_test_stats.csv \ No newline at end of file