2023-03-25 12:59:27 +01:00
|
|
|
node {
|
2023-04-04 21:24:37 +02:00
|
|
|
checkout scm
|
|
|
|
def testImage = docker.build("test-image")
|
|
|
|
testImage.inside {
|
|
|
|
stage('Preparation') {
|
2023-03-25 12:59:27 +01:00
|
|
|
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
|
|
|
|
}
|
2023-04-04 21:24:37 +02:00
|
|
|
}
|
|
|
|
|
2023-03-25 12:59:27 +01:00
|
|
|
}
|