stats job
This commit is contained in:
parent
3bebf05474
commit
a245a38dfe
26
Jenkinsfile
vendored
26
Jenkinsfile
vendored
@ -1,36 +1,22 @@
|
||||
node {
|
||||
stage('Preparation') {
|
||||
stage('Preparation') {
|
||||
|
||||
properties([
|
||||
parameters([
|
||||
string(defaultValue: 'karopa',
|
||||
description: 'Kaggle username',
|
||||
name: 'KAGGLE_USERNAME',
|
||||
trim: false),
|
||||
password(defaultValue: '',
|
||||
description: 'Kaggle token',
|
||||
name: 'KAGGLE_KEY'),
|
||||
string(defaultValue: '5000',
|
||||
description: 'Data cutoff',
|
||||
name: 'CUTOFF',
|
||||
trim: false)
|
||||
buildSelector(defaultSelector: lastSuccessful(),
|
||||
description: 'Which build to use for copying artifacts',
|
||||
name: 'BUILD_SELECTOR')
|
||||
])
|
||||
]
|
||||
)
|
||||
|
||||
}
|
||||
stage('Clone repo') {
|
||||
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}", "KAGGLE_KEY=${params.KAGGLE_KEY}"]){
|
||||
checkout([$class: 'GitSCM', branches: [[name: '*/master']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[url: 'https://git.wmi.amu.edu.pl/s434765/ium_434765']]])
|
||||
copyArtifacts filter: 'data_shuf', fingerprintArtifacts: true, projectName: 's434765-create-dataset', selector: buildParameter("BUILD_SELECTOR")
|
||||
sh '''
|
||||
#!/usr/bin/env bash
|
||||
chmod 777 get_data_simple.sh
|
||||
./get_data_simple.sh $CUTOFF
|
||||
./get_stats_simple.sh
|
||||
'''
|
||||
archiveArtifacts "data_dev"
|
||||
archiveArtifacts "data_shuf"
|
||||
archiveArtifacts "data_test"
|
||||
archiveArtifacts "data_train"
|
||||
}
|
||||
}
|
||||
}
|
2
get_stats_simple.sh
Normal file
2
get_stats_simple.sh
Normal file
@ -0,0 +1,2 @@
|
||||
#!/bin/bash
|
||||
wc -l "data_shuf"
|
Loading…
Reference in New Issue
Block a user