diff --git a/zad8/Jenkinsfile b/zad8/Jenkinsfile index db505ef..4f8e8b6 100644 --- a/zad8/Jenkinsfile +++ b/zad8/Jenkinsfile @@ -12,12 +12,19 @@ pipeline { } } } + stage('sh: Shell Script') { + steps { + sh 'chmod +x zad8.sh' + sh './zad8.sh + } + } stage('test_save') { steps { archiveArtifacts 'test/test.csv' archiveArtifacts 'test/dev.csv' archiveArtifacts 'test/train.csv' archiveArtifacts 'test/zadanie7.csv' + archiveArtifacts 'test/final.txt' } } } diff --git a/zad8/zad8.sh b/zad8/zad8.sh new file mode 100644 index 0000000..d3243be --- /dev/null +++ b/zad8/zad8.sh @@ -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 +