2023-04-14 23:55:01 +02:00
|
|
|
pipeline {
|
|
|
|
agent any
|
|
|
|
parameters {
|
2023-04-15 13:42:34 +02:00
|
|
|
buildSelector(
|
2023-04-14 23:58:41 +02:00
|
|
|
name: 'BUILD_SELECTOR',
|
2023-04-15 13:42:34 +02:00
|
|
|
defaultSelector: lastSuccessful(),
|
|
|
|
description: 'A build to take the artifacts from'
|
2023-04-14 23:55:01 +02:00
|
|
|
)
|
|
|
|
}
|
|
|
|
stages {
|
|
|
|
stage('Copy artifacts') {
|
|
|
|
steps {
|
|
|
|
script {
|
|
|
|
copyArtifacts(
|
|
|
|
projectName: 'z-s487179-create-dataset',
|
2023-04-15 14:18:43 +02:00
|
|
|
selector: buildParameter('BUILD_SELECTOR'),
|
2023-04-15 14:18:43 +02:00
|
|
|
target: 'datsetStats/'
|
2023-04-14 23:55:01 +02:00
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-04-15 14:13:51 +02:00
|
|
|
stage('Run sh file') {
|
|
|
|
steps {
|
|
|
|
sh 'ls -l'
|
2023-04-15 14:18:43 +02:00
|
|
|
dir('./datasetStats') {
|
|
|
|
sh "./datasetStats.sh"
|
|
|
|
}
|
2023-04-15 14:13:51 +02:00
|
|
|
}
|
|
|
|
}
|
2023-04-14 23:55:01 +02:00
|
|
|
}
|
2023-04-15 00:13:06 +02:00
|
|
|
}
|