Added s487197-dataset-stats jenkinsfile and shell script

This commit is contained in:
Wojciech Lidwin 2023-03-26 20:48:33 +02:00
parent 009b048153
commit a5306b3d70
2 changed files with 13 additions and 0 deletions

12
Jenkinsfile2 Normal file
View File

@ -0,0 +1,12 @@
node {
stage('copyArtifact') {
copyArtifacts fingerprintArtifacts: true, projectName: 's487197-create-dataset', selector: lastSuccessful()
}
stage('Shell Script') {
sh 'chmod u+x ./stats.sh'
sh './stats.sh'
}
stage('archiveArtifacts') {
archiveArtifacts artifacts: 'stats.txt'
}
}

1
stats.sh Normal file
View File

@ -0,0 +1 @@
wc -l BPD_Part_1_Victim_Based_Crime_Data.csv > stats.txt