28 lines
770 B
Plaintext
28 lines
770 B
Plaintext
node {
|
|
checkout scm
|
|
def testImage = docker.build("test-image")
|
|
testImage.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: '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
|
|
}
|
|
}
|
|
|
|
} |