This commit is contained in:
koziej97 2023-03-29 00:44:56 +02:00
commit f486b3bd7e

View File

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