add jenkinsfile2 and stats script

This commit is contained in:
Maciej Czajka 2022-03-25 22:06:35 +01:00
parent bee4178c4e
commit 5be17ac1d7
3 changed files with 23 additions and 0 deletions

1
Jenkinsfile vendored
View File

@ -22,6 +22,7 @@ pipeline {
environment { environment {
KAGGLE_USERNAME="$params.KAGGLE_USERNAME" KAGGLE_USERNAME="$params.KAGGLE_USERNAME"
KAGGLE_KEY="$params.KAGGLE_KEY" KAGGLE_KEY="$params.KAGGLE_KEY"
CUTOFF="$params.CUTOFF"
} }
stages { stages {

19
Jenkinsfile2 Normal file
View File

@ -0,0 +1,19 @@
pipeline {
agent any
parameters{
buildSelector(
defaultSelector: lastSuccessful(),
name: 'BUILD_SELECTOR',
description: 'Which build to use for copying artifacts'
)
}
stages {
stage("Script") {
steps {
sh " ./stats.sh"
archiveArtifacts 'lines.txt'
}
}
}
}

3
stats.sh Executable file
View File

@ -0,0 +1,3 @@
wc -l all_games.csv.dev > lines.txt
wc -l all_games.csv.test >> lines.txt
wc -l all_games.csv.train >> lines.txt