From a5306b3d70748a35701d832f16b29babd6aaa4de Mon Sep 17 00:00:00 2001 From: Wojciech Lidwin Date: Sun, 26 Mar 2023 20:48:33 +0200 Subject: [PATCH] Added s487197-dataset-stats jenkinsfile and shell script --- Jenkinsfile2 | 12 ++++++++++++ stats.sh | 1 + 2 files changed, 13 insertions(+) create mode 100644 Jenkinsfile2 create mode 100644 stats.sh diff --git a/Jenkinsfile2 b/Jenkinsfile2 new file mode 100644 index 0000000..717eb2d --- /dev/null +++ b/Jenkinsfile2 @@ -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' + } +} \ No newline at end of file diff --git a/stats.sh b/stats.sh new file mode 100644 index 0000000..23f7deb --- /dev/null +++ b/stats.sh @@ -0,0 +1 @@ +wc -l BPD_Part_1_Victim_Based_Crime_Data.csv > stats.txt \ No newline at end of file