25 lines
620 B
Plaintext
25 lines
620 B
Plaintext
node {
|
|
docker.image('lukkoz2/ium:latest').inside {
|
|
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')
|
|
}
|
|
stage('Script') {
|
|
sh '''wc -l books_edited.csv > stats.txt
|
|
'''
|
|
}
|
|
stage('Archive artifacts') {
|
|
archiveArtifacts artifacts: 'stats.txt', followSymlinks: false
|
|
}
|
|
}
|
|
} |