ium_444417/Jenkinsfile2
s444417 662afb9829
Some checks failed
s444417-training/pipeline/head There was a failure building this commit
add docker container to job stats
2022-04-11 10:42:30 +02:00

32 lines
865 B
Plaintext

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