ium_444417/Jenkinsfile2

36 lines
950 B
Plaintext
Raw Normal View History

2022-03-24 21:26:43 +01:00
pipeline {
agent any
parameters{
buildSelector(
defaultSelector: lastSuccessful(),
name: 's444417-create-dataset',
2022-03-24 21:47:58 +01:00
description: 'Build selector for Copy artifact'
2022-03-24 21:26:43 +01:00
)
}
2022-03-24 21:47:58 +01:00
environment {
KAGGLE_USERNAME="$params.KAGGLE_USERNAME"
}
2022-03-24 21:26:43 +01:00
stages {
stage("Check out from version control") {
steps {
checkout scm
}
}
stage("Shell Script") {
2022-03-24 21:47:58 +01:00
steps {
options {
copyArtifacts
fingerprintArtifacts: true,
name: 's444417-create-dataset',
selector: buildParameter('BUILD_SELECTOR')
}
}
2022-03-24 21:26:43 +01:00
steps {
2022-03-24 21:30:24 +01:00
sh "chmod u+x ./startscript2.sh"
sh " ./startscript2.sh"
2022-03-24 21:26:43 +01:00
archiveArtifacts 'num_lines.txt'
}
}
}
}