fix Jenkinsfile_stats

This commit is contained in:
Łukasz Koziej 2023-03-29 00:38:41 +02:00
parent f67b67fad8
commit 8aa57a2dd4

View File

@ -14,10 +14,8 @@ node {
copyArtifacts fingerprintArtifacts: true, projectName: 's425850-create-dataset', selector: buildParameter('BUILD_SELECTOR') copyArtifacts fingerprintArtifacts: true, projectName: 's425850-create-dataset', selector: buildParameter('BUILD_SELECTOR')
} }
stage('Script') { stage('Script') {
withEnv() { sh '''wc -l books_edited.csv > stats.txt
sh 'chmod u+x ./get_stats.sh' '''
sh './get_stats.sh'
}
} }
stage('Archive artifacts') { stage('Archive artifacts') {
archiveArtifacts artifacts: 'stats.txt', followSymlinks: false archiveArtifacts artifacts: 'stats.txt', followSymlinks: false