s444417
662afb9829
Some checks failed
s444417-training/pipeline/head There was a failure building this commit
32 lines
865 B
Plaintext
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'
|
|
}
|
|
}
|
|
}
|
|
} |