add script for dataset-stats
This commit is contained in:
parent
767e19f21a
commit
7feb78d4f2
@ -1,17 +1,20 @@
|
|||||||
pipeline {
|
pipeline {
|
||||||
agent any
|
agent any
|
||||||
|
properties([parameters([
|
||||||
|
buildSelector(
|
||||||
|
defaultSelector: lastSuccessful(),
|
||||||
|
description: 'Which build to use for copying artifacts',
|
||||||
|
name: 'BUILD_SELECTOR')
|
||||||
|
])])
|
||||||
stages {
|
stages {
|
||||||
stage('copy artifacts') {
|
stage('copy artifacts') {
|
||||||
steps {
|
steps {
|
||||||
copyArtifacts fingerprintArtifacts: true, projectName: 's470607-create-dataset', selector: lastSuccessful()
|
copyArtifacts fingerprintArtifacts: true, projectName: 's470607-create-dataset', selector: buildParameter('BUILD_SELECTOR')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('stats') {
|
stage('stats') {
|
||||||
steps {
|
steps {
|
||||||
sh 'wc -l train.csv > stats.txt'
|
sh 'chmod +x dataset-stats.sh'
|
||||||
sh 'wc -l test.csv >> stats.txt'
|
|
||||||
sh 'wc -l valid.csv >> stats.txt'
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('archive artifacts') {
|
stage('archive artifacts') {
|
||||||
|
5
dataset-stats.sh
Normal file
5
dataset-stats.sh
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
sh 'wc -l train.csv > stats.txt'
|
||||||
|
sh 'wc -l test.csv >> stats.txt'
|
||||||
|
sh 'wc -l valid.csv >> stats.txt'
|
Loading…
Reference in New Issue
Block a user