ium_444417/Jenkinsfile2
2022-03-28 10:55:20 +02:00

31 lines
859 B
Plaintext

pipeline {
agent any
parameters{
buildSelector(
defaultSelector: lastSuccessful(),
name: 'BUILD_SELECTOR',
description: 'Build selector for Copy artifact'
)
}
stages {
stage("Check out from version control") {
steps {
checkout scm
}
}
stage("Shell Script") {
steps {
copyArtifacts(
fingerprintArtifacts: true,
projectName: 's444417-create-dataset',
filter:'data.txt',
selector: buildParameter('BUILD_SELECTOR')
)
sh "chmod u+x ./startscript2.sh"
sh " ./startscript2.sh"
archiveArtifacts artifacts: 'num_lines.txt'
}
}
}
}