update do zadania z lab 05

This commit is contained in:
Norbert Walkowiak 2023-06-06 22:43:37 +02:00
parent 915e2947cf
commit b56b0b2f91
2 changed files with 2 additions and 2 deletions

2
Jenkinsfile vendored
View File

@ -73,7 +73,7 @@ pipeline {
}
stage('Archive file') {
steps {
sh "docker cp \$(docker ps -l -q):/app/diamonds.csv ${env.WORKSPACE}"
sh "docker cp \$(docker ps -l -q):/app/dane/diamonds.csv ${env.WORKSPACE}"
archiveArtifacts artifacts: 'output.txt, diamonds.csv', fingerprint: true
}
}

View File

@ -1,7 +1,7 @@
#!/bin/bash
# script ilość linii w wejściowym pliku
artifact_path="/app/diamonds.csv"
artifact_path="/app/dane/diamonds.csv"
if [ -f "$artifact_path" ]; then
wc -l < "$artifact_path"
else