ium_452662/Jenkinsfile_stats

23 lines
672 B
Plaintext
Raw Normal View History

2023-03-25 12:59:27 +01:00
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
}
}