add task2
This commit is contained in:
parent
31492ed478
commit
cec04a1740
16
Jenkinsfile_Stats
Normal file
16
Jenkinsfile_Stats
Normal file
@ -0,0 +1,16 @@
|
||||
pipeline {
|
||||
agent any
|
||||
parameters {
|
||||
buildSelector(defaultSelector: lastSuccessful(), description: 'Which build to use for copying artifacts', name: 'BUILD_SELECTOR')
|
||||
}
|
||||
stages {
|
||||
stage("Clone repo & print stats"){
|
||||
steps {
|
||||
copyArtifacts fingerprintArtifacts: true, projectName: 's430705-create-dataset', selector: buildParameter('BUILD_SELECTOR')
|
||||
sh "chmod 777 ./return_files_lines.sh"
|
||||
sh "./return_files_lines.sh"
|
||||
archiveArtifacts "stats.txt"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
1
return_files_lines.sh
Normal file
1
return_files_lines.sh
Normal file
@ -0,0 +1 @@
|
||||
wc -l ./*.csv > ./stats.txt
|
Loading…
Reference in New Issue
Block a user