ium_z487179/datasetStats/Jenkinsfile

33 lines
862 B
Plaintext
Raw Normal View History

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',
selector: buildParameter('BUILD_SELECTOR'),
2023-04-15 14:34:11 +02:00
target: './datasetStats'
2023-04-14 23:55:01 +02:00
)
}
}
}
2023-04-15 14:13:51 +02:00
stage('Run sh file') {
steps {
sh 'ls -l'
dir('./datasetStats') {
2023-04-15 14:23:20 +02:00
sh 'chmod +x ./datasetStats.sh'
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
}