stats
This commit is contained in:
parent
fba097b316
commit
9edd5394da
23
stats/Jenkinsfile
vendored
Normal file
23
stats/Jenkinsfile
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
pipeline {
|
||||||
|
agent any
|
||||||
|
parameters {
|
||||||
|
buildSelector {
|
||||||
|
defaultSelector: lastSuccessful(),
|
||||||
|
description: 'Build for copying artifacts',
|
||||||
|
name: 'BUILD_SELECTOR'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stages {
|
||||||
|
stage('Copy Artifacts') {
|
||||||
|
steps {
|
||||||
|
copyArtifacts fingerprintArtifacts: true, projectName: 's464914-create-dataset', selector: buildParameter('BUILD_SELECTOR')
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage('Build') {
|
||||||
|
steps {
|
||||||
|
sh "bash ./stats_dataset.sh"
|
||||||
|
archiveArtifacts artifacts: 'artifacts/*', onlyIfSuccessful: true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
7
stats/stats_dataset.sh
Normal file
7
stats/stats_dataset.sh
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
wc -l artifacts/meteorite_train.csv > stats_train.txt
|
||||||
|
|
||||||
|
wc -l artifacts/meteorite_test.csv > stats_test.txt
|
||||||
|
|
||||||
|
wc -l artifacts/meteorite_validation.csv > stats_validation.txt
|
Loading…
Reference in New Issue
Block a user