add Jenkinsfile for stats
This commit is contained in:
parent
a0a188c4e9
commit
5e48e22da4
23
Jenkinsfile_stats
Normal file
23
Jenkinsfile_stats
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
node {
|
||||||
|
stage('Preparation') {
|
||||||
|
properties([
|
||||||
|
parameters([
|
||||||
|
buildSelector(
|
||||||
|
defaultSelector: lastSuccessful(),
|
||||||
|
description: 'Which build to use for copying artifacts',
|
||||||
|
name: 'BUILD_SELECTOR')
|
||||||
|
|
||||||
|
])
|
||||||
|
])
|
||||||
|
}
|
||||||
|
stage('Copy artifacts') {
|
||||||
|
copyArtifacts fingerprintArtifacts: true, projectName: 's452662-create-dataset', selector: buildParameter('BUILD_SELECTOR')
|
||||||
|
}
|
||||||
|
stage('Script') {
|
||||||
|
sh '''wc -l Car_Prices_Poland_Kaggle.csv > cars_stats.txt
|
||||||
|
'''
|
||||||
|
}
|
||||||
|
stage('Archive artifacts') {
|
||||||
|
archiveArtifacts artifacts: '*.txt', followSymlinks: false
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user