ium_z487179/datasetStats/Jenkinsfile
2023-06-11 10:54:35 +02:00

37 lines
1012 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 {
script {
sh 'ls -l'
docker.image('docker-image').inside {
dir('./datasetStats') {
sh 'ls -l'
sh 'python3 ./datasetStats.py'
}
}
}
}
}
}
}