add stats

This commit is contained in:
PawelDopierala 2024-03-27 02:58:23 +01:00
parent 2588d5b5ba
commit 97ab3eb8e1
2 changed files with 34 additions and 0 deletions

32
JenkinsfileStats Normal file
View File

@ -0,0 +1,32 @@
pipeline {
agent any
parameters{
buildSelector(
defaultSelector: lastSuccessful(),
description: 'Which build to use for copying artifacts',
name: 'BUILD_SELECTOR'
)
}
stages {
stage('Git') {
steps {
git(
url: "https://git.wmi.amu.edu.pl/s495719/ium_495719.git",
branch: "main"
)
}
}
stage('Download data') {
steps {
copyArtifacts fingerprintArtifacts: true, projectName: 'z-s495719-create-dataset', selector: buildParameter('BUILD_SELECTOR')
}
}
stage('Artifacts') {
steps {
archiveArtifacts artifacts: 'processed_data.txt'
}
}
}
}

2
data_stats.sh Normal file
View File

@ -0,0 +1,2 @@
#!/bin/bash
wc -l processed_data.txt > stats.txt