ium_452662/Jenkinsfile_stats

23 lines
672 B
Plaintext

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
}
}