ium_z487179/datasetStats/Jenkinsfile
2023-04-15 14:34:11 +02:00

33 lines
862 B
Groovy

pipeline {
agent any
parameters {
buildSelector(
name: 'BUILD_SELECTOR',
defaultSelector: lastSuccessful(),
description: 'A build to take the artifacts from'
)
}
stages {
stage('Copy artifacts') {
steps {
script {
copyArtifacts(
projectName: 'z-s487179-create-dataset',
selector: buildParameter('BUILD_SELECTOR'),
target: './datasetStats'
)
}
}
}
stage('Run sh file') {
steps {
sh 'ls -l'
dir('./datasetStats') {
sh 'chmod +x ./datasetStats.sh'
sh "./datasetStats.sh"
}
}
}
}
}