2022-03-24 17:03:41 +01:00
|
|
|
pipeline {
|
2022-03-24 21:12:58 +01:00
|
|
|
agent any
|
|
|
|
parameters{
|
|
|
|
buildSelector(
|
|
|
|
defaultSelector: lastSuccessful(),
|
|
|
|
name: 's444354-create-dataset',
|
|
|
|
description: 'Which build to use for copying artifacts'
|
|
|
|
)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
stages {
|
|
|
|
stage("Check out from version control") {
|
|
|
|
steps {
|
|
|
|
checkout scm
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage("Shell Script") {
|
|
|
|
steps {
|
|
|
|
sh "chmod u+x ./script2.sh"
|
|
|
|
sh " ./script2.sh"
|
|
|
|
archiveArtifacts 'num_of_lines.txt'
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2022-03-24 19:43:47 +01:00
|
|
|
}
|