This commit is contained in:
s495716 2024-03-29 19:06:21 +01:00
parent 51a5025938
commit d0c7f251bc

29
stats/Jenkinsfile vendored
View File

@ -1,24 +1,9 @@
pipeline {
agent {
docker {
image 'jvncziii/ium:latest'
}
}
parameters {
buildSelector(
defaultSelector: lastSuccessful(),
description: 'Which build to use for copying artifacts',
name: 'BUILD_SELECTOR'
)
}
stages {
stage('Dataset statistics') {
steps {
copyArtifacts filter:'train.csv', fingerprintArtifacts: true, projectName: 'z-s495716-create-dataset', selector: buildParameter('BUILD_SELECTOR')
sh 'chmod 777 stats/data_stats.sh'
sh './stats/data_stats.sh'
archiveArtifacts artifacts: 'train_lines.txt', followSymlinks: false
}
}
node {
checkout scm
docker.image('jvncziii/ium:latest').withRun('') { c->
copyArtifacts filter:'train.csv', fingerprintArtifacts: true, projectName: 'z-s495716-create-dataset', selector: buildParameter('BUILD_SELECTOR')
sh 'chmod 777 stats/data_stats.sh'
sh './stats/data_stats.sh'
archiveArtifacts artifacts: 'train_lines.txt', followSymlinks: false
}
}