This commit is contained in:
s434732 2021-03-28 21:08:08 +02:00
parent 57939fd236
commit 6b42a898f4
2 changed files with 23 additions and 0 deletions

18
Jenkinsfile2 Normal file
View File

@ -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"
}
}
}
}

5
skrypt_zad2_stats.sh Normal file
View File

@ -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'