Jenkinsfile-stat
This commit is contained in:
parent
48f555f51b
commit
034c719fec
3
.gitignore
vendored
3
.gitignore
vendored
@ -57,4 +57,5 @@ docs/source/changelog.md
|
||||
|
||||
#fifa dataset
|
||||
fifa19*
|
||||
*.csv
|
||||
*.csv
|
||||
stat.txt
|
36
Jenkinsfile-stat
Normal file
36
Jenkinsfile-stat
Normal file
@ -0,0 +1,36 @@
|
||||
pipeline {
|
||||
agent any
|
||||
parameters{
|
||||
BuildSelector(
|
||||
defaultSelector: lastSuccessful(),
|
||||
description: '',
|
||||
name: 'which_build'
|
||||
)
|
||||
}
|
||||
stages {
|
||||
stage('checkout: Check out from version control') {
|
||||
steps {
|
||||
git 'https://git.wmi.amu.edu.pl/s434760/ium_434760.git'
|
||||
}
|
||||
}
|
||||
stage('copy artifacts')
|
||||
{
|
||||
steps
|
||||
{
|
||||
copyArtifacts filter: 'test.csv,data_shuf.csv,validation.csv,train.csv,header.csv', fingerprintArtifacts: true, projectName: 's434760-create-dataset', selector: params.which_build
|
||||
}
|
||||
}
|
||||
stage('sh: Shell Script')
|
||||
{
|
||||
steps {
|
||||
sh "chmod 777 ./script_stat.sh"
|
||||
sh './script_stat.sh'
|
||||
}
|
||||
}
|
||||
stage('archive artifacts') {
|
||||
steps {
|
||||
archiveArtifacts 'stat.txt'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
4
script_stat.sh
Normal file
4
script_stat.sh
Normal file
@ -0,0 +1,4 @@
|
||||
wc -l data_shuf.csv >> stat.txt
|
||||
wc -l train.csv >> stat.txt
|
||||
wc -l test.csv >> stat.txt
|
||||
wc -l validation.csv >> stat.txt
|
Loading…
Reference in New Issue
Block a user