2023-03-29 00:28:55 +02: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: 's425850-create-dataset', selector: buildParameter('BUILD_SELECTOR')
|
|
|
|
}
|
2023-03-29 00:37:24 +02:00
|
|
|
stage('Script') {
|
2023-03-29 00:38:41 +02:00
|
|
|
sh '''wc -l books_edited.csv > stats.txt
|
|
|
|
'''
|
2023-03-29 00:28:55 +02:00
|
|
|
}
|
|
|
|
stage('Archive artifacts') {
|
|
|
|
archiveArtifacts artifacts: 'stats.txt', followSymlinks: false
|
|
|
|
}
|
|
|
|
}
|