Dodanie 'Jenkinsfile2'
This commit is contained in:
parent
c181c7965b
commit
7b1760631b
19
Jenkinsfile2
Normal file
19
Jenkinsfile2
Normal 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'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user