Dodanie 'Jenkinsfile2'

This commit is contained in:
Szymon Parafiński 2022-03-27 23:57:12 +02:00
parent c181c7965b
commit 7b1760631b

19
Jenkinsfile2 Normal file
View File

@ -0,0 +1,19 @@
pipeline {
agent any
parameters{
buildSelector(
defaultSelector: lastSuccessful(),
name: 'BUILD_SELECTOR',
description: 'Which build to use for copying artifacts'
)
}
stages {
stage("Script") {
steps {
copyArtifacts fingerprintArtifacts: true, projectName: 's444018-create-dataset', selector: buildParameter('BUILD_SELECTOR')
sh " ./stats.sh"
archiveArtifacts 'lines.txt'
}
}
}
}