2022-04-03 23:13:45 +02:00
|
|
|
pipeline {
|
|
|
|
agent {
|
|
|
|
docker {
|
|
|
|
image 'docker_image'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
parameters{
|
|
|
|
buildSelector(
|
|
|
|
defaultSelector: lastSuccessful(),
|
|
|
|
name: 'BUILD_SELECTOR',
|
|
|
|
description: 'Which build to use for copying artifacts'
|
|
|
|
)
|
|
|
|
}
|
|
|
|
stages {
|
|
|
|
stage("Script") {
|
|
|
|
steps {
|
2022-04-04 00:03:50 +02:00
|
|
|
copyArtifacts fingerprintArtifacts: true, projectName: 's444018-create-dataset', selector: buildParameter('BUILD_SELECTOR')
|
2022-04-03 23:16:40 +02:00
|
|
|
sh 'chmod +x ./lab2/stats.sh'
|
2022-04-03 23:13:45 +02:00
|
|
|
sh "./lab2/stats.sh"
|
|
|
|
archiveArtifacts 'stats.txt'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|