diff --git a/Jenkinsfile2 b/Jenkinsfile2 new file mode 100644 index 0000000..899818e --- /dev/null +++ b/Jenkinsfile2 @@ -0,0 +1,18 @@ +pipeline { + agent any + parameters { + buildSelector(defaultSelector: lastSuccessful(), description: 'Which build to use for copying artifacts', name: 'BUILD_SELECTOR') + } + stages { + stage("One"){ + steps { + copyArtifacts fingerprintArtifacts: true, projectName: 's434732-create-dataset', selector: buildParameter('BUILD_SELECTOR') + + sh "chmod 777 ./skrypt_zad2_stats.sh" + sh "./skrypt_zad2_stats.sh" + + archiveArtifacts "stats.txt" + } + } + } +} \ No newline at end of file diff --git a/skrypt_zad2_stats.sh b/skrypt_zad2_stats.sh new file mode 100644 index 0000000..a87a61c --- /dev/null +++ b/skrypt_zad2_stats.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +sh 'wc -l results.csv_cut.dev > stats.txt' +sh 'wc -l results.csv_cut.test >> stats.txt' +sh 'wc -l results.csv_cut.train >> stats.txt' \ No newline at end of file