2022-03-27 22:26:48 +02:00
|
|
|
pipeline {
|
|
|
|
agent any
|
|
|
|
|
2022-03-27 22:38:43 +02:00
|
|
|
parameters{
|
|
|
|
buildSelector(
|
|
|
|
defaultSelector: lastSuccessful(),
|
|
|
|
description: 'Which build to use for copying artifacts',
|
|
|
|
name: 'BUILD_SELECTOR')
|
|
|
|
}
|
|
|
|
|
2022-03-27 22:26:48 +02:00
|
|
|
stages {
|
2022-03-27 22:32:11 +02:00
|
|
|
stage('CopyArtifacts') {
|
2022-03-27 22:26:48 +02:00
|
|
|
steps {
|
2022-03-27 22:39:33 +02:00
|
|
|
copyArtifacts fingerprintArtifacts: true, projectName: 's478815-create-datasets', selector: buildParameter('BUILD_SELECTOR')
|
2022-03-27 22:35:25 +02:00
|
|
|
sh "chmod +x -R ${env.WORKSPACE}"
|
|
|
|
sh './skrypt_stats.sh'
|
2022-03-27 22:32:11 +02:00
|
|
|
}
|
2022-03-27 22:26:48 +02:00
|
|
|
}
|
|
|
|
stage('Archive') {
|
|
|
|
steps {
|
|
|
|
archiveArtifacts 'data.csv.shuf.uptd'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|