test 8 zadania

This commit is contained in:
Dominik 2021-03-26 17:26:23 +01:00
parent 8481ab6931
commit 5d3dd5c4de
2 changed files with 14 additions and 0 deletions

7
zad8/Jenkinsfile vendored
View File

@ -12,12 +12,19 @@ pipeline {
} }
} }
} }
stage('sh: Shell Script') {
steps {
sh 'chmod +x zad8.sh'
sh './zad8.sh
}
}
stage('test_save') { stage('test_save') {
steps { steps {
archiveArtifacts 'test/test.csv' archiveArtifacts 'test/test.csv'
archiveArtifacts 'test/dev.csv' archiveArtifacts 'test/dev.csv'
archiveArtifacts 'test/train.csv' archiveArtifacts 'test/train.csv'
archiveArtifacts 'test/zadanie7.csv' archiveArtifacts 'test/zadanie7.csv'
archiveArtifacts 'test/final.txt'
} }
} }
} }

7
zad8/zad8.sh Normal file
View File

@ -0,0 +1,7 @@
wc -l test.csv > file1.txt
wc -l dev.csv > file2.txt
wc -l train.csv > file3.txt
cat file1.txt file2.txt > temp.txt
cat file3.txt temp.txt > final.txt