add stats
This commit is contained in:
parent
2588d5b5ba
commit
97ab3eb8e1
32
JenkinsfileStats
Normal file
32
JenkinsfileStats
Normal 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
2
data_stats.sh
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
wc -l processed_data.txt > stats.txt
|
Loading…
Reference in New Issue
Block a user