Add script and Jenkinsfile for zadanie 3.8

This commit is contained in:
Zofia Galla 2021-03-28 18:06:21 +02:00
parent ab8715ddfd
commit 62ef43c15b
2 changed files with 25 additions and 0 deletions

21
Jenkinsfile_stats Normal file
View File

@ -0,0 +1,21 @@
pipeline {
agent any
stages {
stage('copyArtifacts') {
steps {
copyArtifacts fingerprintArtifacts: true, projectName: 's434684-create-dataset', selector: buildParameter('CREATE_DATASET_BUILD_SELECTOR')
}
}
stage('script stats') {
steps {
sh 'chmod +x jenkins_stats_script.sh'
sh './jenkins_stats_script.sh'
}
}
stage('archiveArtifacts') {
steps {
archiveArtifacts 'dataset-stats.txt'
}
}
}
}

4
jenkins_stats_script.sh Normal file
View File

@ -0,0 +1,4 @@
#!/bin/bash
wc -l netflix_split_train.csv > dataset-stats.txt
wc -l netflix_split_test.csv >> dataset-stats.txt
wc -l netflix_split_validation.csv >> dataset-stats.txt