Add script and Jenkinsfile for zadanie 3.8
This commit is contained in:
parent
ab8715ddfd
commit
62ef43c15b
21
Jenkinsfile_stats
Normal file
21
Jenkinsfile_stats
Normal 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
4
jenkins_stats_script.sh
Normal 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
|
Loading…
Reference in New Issue
Block a user