update do zadania z lab 05
This commit is contained in:
parent
915e2947cf
commit
b56b0b2f91
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
@ -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
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user