zad2
This commit is contained in:
parent
57939fd236
commit
6b42a898f4
18
Jenkinsfile2
Normal file
18
Jenkinsfile2
Normal file
@ -0,0 +1,18 @@
|
||||
pipeline {
|
||||
agent any
|
||||
parameters {
|
||||
buildSelector(defaultSelector: lastSuccessful(), description: 'Which build to use for copying artifacts', name: 'BUILD_SELECTOR')
|
||||
}
|
||||
stages {
|
||||
stage("One"){
|
||||
steps {
|
||||
copyArtifacts fingerprintArtifacts: true, projectName: 's434732-create-dataset', selector: buildParameter('BUILD_SELECTOR')
|
||||
|
||||
sh "chmod 777 ./skrypt_zad2_stats.sh"
|
||||
sh "./skrypt_zad2_stats.sh"
|
||||
|
||||
archiveArtifacts "stats.txt"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
5
skrypt_zad2_stats.sh
Normal file
5
skrypt_zad2_stats.sh
Normal file
@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
sh 'wc -l results.csv_cut.dev > stats.txt'
|
||||
sh 'wc -l results.csv_cut.test >> stats.txt'
|
||||
sh 'wc -l results.csv_cut.train >> stats.txt'
|
Loading…
Reference in New Issue
Block a user