ium_444417/Jenkinsfile2

32 lines
865 B
Plaintext
Raw Normal View History

2022-03-24 21:26:43 +01:00
pipeline {
parameters{
buildSelector(
defaultSelector: lastSuccessful(),
2022-03-28 10:55:20 +02:00
name: 'BUILD_SELECTOR',
2022-03-24 21:47:58 +01:00
description: 'Build selector for Copy artifact'
2022-03-24 21:26:43 +01:00
)
}
2022-04-11 10:42:30 +02:00
agent {
docker { image 'ubuntu:latest' }
}
2022-03-24 21:26:43 +01:00
stages {
stage("Check out from version control") {
steps {
checkout scm
}
}
2022-03-24 21:55:44 +01:00
stage("Shell Script") {
steps {
copyArtifacts(
fingerprintArtifacts: true,
2022-03-24 22:12:31 +01:00
projectName: 's444417-create-dataset',
2022-03-24 21:55:44 +01:00
selector: buildParameter('BUILD_SELECTOR')
)
sh "chmod u+x ./startscript2.sh"
sh " ./startscript2.sh"
2022-03-28 10:55:20 +02:00
archiveArtifacts artifacts: 'num_lines.txt'
2022-03-24 21:55:44 +01:00
}
}
}
}