x1/JenkinsfileDatasetStats

35 lines
915 B
Plaintext
Raw Permalink Normal View History

2023-06-26 19:18:24 +02:00
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: 'x1-create-dataset',
selector: buildParameter('BUILD_SELECTOR'),
2023-06-26 19:21:57 +02:00
target: './'
2023-06-26 19:18:24 +02:00
)
}
}
}
2023-06-26 19:21:57 +02:00
stage('Run python file') {
2023-06-26 19:18:24 +02:00
steps {
script {
sh 'ls -l'
docker.image('docker-image').inside {
sh 'ls -l'
sh 'python3 ./datasetStats.py'
}
}
}
}
}
}