ium_444417/Jenkinsfile2
2022-03-24 21:52:43 +01:00

35 lines
920 B
Plaintext

pipeline {
agent any
parameters{
buildSelector(
defaultSelector: lastSuccessful(),
name: 's444417-create-dataset',
description: 'Build selector for Copy artifact'
)
}
environment {
KAGGLE_USERNAME="$params.KAGGLE_USERNAME"
}
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')
)
}
steps {
sh "chmod u+x ./startscript2.sh"
sh " ./startscript2.sh"
archiveArtifacts 'num_lines.txt'
}
}
}
}